cvs: smarty /docs/en/designers/language-variables language-variables-smarty.xml
"Peter 'Mash' Morgan" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvspete_morgan1126355946@cvsserver> |
pete_morgan Sat Sep 10 08:39:06 2005 EDT
Modified files:
/smarty/docs/en/designers/language-variables
language-variables-smarty.xml
Log:
Added equivelant php vars
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-variables/language-variables-smarty.xml?r1=1.11&r2=1.12&ty=u
Index: smarty/docs/en/designers/language-variables/language-variables-smarty.xml
diff -u smarty/docs/en/designers/language-variables/language-variables-smarty.xml:1.11 smarty/docs/en/designers/language-variables/language-variables-smarty.xml:1.12
--- smarty/docs/en/designers/language-variables/language-variables-smarty.xml:1.11 Thu Jun 16 14:44:54 2005
+++ smarty/docs/en/designers/language-variables/language-variables-smarty.xml Sat Sep 10 08:39:06 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
<sect1 id="language.variables.smarty">
<title>{$smarty} reserved variable</title>
<para>
@@ -20,22 +20,22 @@
<title>displaying request variables</title>
<programlisting>
<![CDATA[
-{* display value of page from URL (GET) http://www.example.com/index.php?page=foo *}
+{* display value of page from URL ($_GET) http://www.example.com/index.php?page=foo *}
{$smarty.get.page}
-{* display the variable "page" from a form (POST) *}
+{* display the variable "page" from a form ($_POST['page']) *}
{$smarty.post.page}
-{* display the value of the cookie "username" *}
+{* display the value of the cookie "username" ($_COOKIE['username']) *}
{$smarty.cookies.username}
-{* display the server variable "SERVER_NAME" *}
+{* display the server variable "SERVER_NAME" ($_SERVER['SERVER_NAME'])*}
{$smarty.server.SERVER_NAME}
{* display the system environment variable "PATH" *}
{$smarty.env.PATH}
-{* display the php session variable "id" *}
+{* display the php session variable "id" ($_SESSION['id']) *}
{$smarty.session.id}
{* display the variable "username" from merged get/post/cookies/server/env *}
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php