Php Variables and Constants

The declaration of Php variables are possible with TPLN inside your template files :


Example with simple Php variable :

<html>
<body>
{$php_variable}
</body>
</html> 

 

Example with array Php like $_SESSION, $_GET, $_POST : 

<html>
<body>
{$_SESSION['variable']}
</body>
</html> 

 

Example with Php constants  : 

<html>
<body> {CONST::MY_CONSTANT} </body> </html>



 





Php variables must be set before opening your template

{CommentNb} Comments for "Php Variables and Constants"

Add new post for "Php Variables and Constants"

Allowed xhtml tags : [b], [i], [u], [strike], [blockquote], [span], [code]

Powered by made with TPLN Template! version 3.6 in 0.0008 s (4 queries executed) - rss
Propulsed by Nuts™ CMS - Content Management System
    Open Source Solution proposed by H2LSOFT (France)