Reply to Re: [SMARTY] Smarty and Sessions

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация