Posted by Evan Wagner on 09/30/12 11:20
Smarty just has config variables. $smarty.session.user is the same
thing as: $_SESSION['user']. $smarty.session.user is just an easy way
to access SUPER GLOBAL arrays. You could do the same thing with _GET,
_POST and _REQUEST
If you wanted to show your $_POST['user'] variable in smarty it's a
matter of: {$smarty.post.user}
Smarty++
On 7/4/05, Jim MacDiarmid <jim.macdiarmid@comcast.net> wrote:
>
> I'm very new to Smarty so I'm hoping someone can help me.
>
> Can someone explain how the $smarty.session.user variable is set? Is this
> something native to smarty or something unquie to the sample code I have?
>
> TIA,
>
> Jim
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
[Back to original message]
|