Re: [SMARTY] How to pass GET or SID to "templatized" page

From: Date: Thu, 19 Jun 2003 09:49:54 +0000
Subject: Re: [SMARTY] How to pass GET or SID to "templatized" page
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9727@lists.php.net to get a copy of this message
> Hi, > > I have checked pages kindly referred by David: > > {* display value of page from URL (GET) > http://www.domain.com/index.php?page=foo *} > {$smarty.get.page} > > {* display the variable "page" from a form a form (POST) *} > {$smarty.post.page} > > {* display the php session variable "id" *} > {$smarty.session.id} > > This articles explain how to get SID and GET variables displayed on > page, but my question was how to PASS them to page. Something like > $mySmarty -> Display("my_page.tpl.html?SID")? Or $mySmarty -> > assign("smarty.get.page", "module=contacts")? > > Thanks in advance for any suggestion. err... display() processes the template and displays it... it doesn't do a http request or something... it's just like an include... you don't need the SID in there, you have it in the application, where you process it... you don't do include("foo.php?SID");, do you... seems like you didn't fully understand the concept of smarty ;) try to walk through the quickstart guide, or read http://www.zend.com/zend/tut/tutorial-cezar.php, and after that http://www.zend.com/zend/tut/tutorial-stump.php, maybe this will help you... if you have any questions, or problems, feel free to ask ;) the smarty board at http://www.phpinsider.com/smarty-forum/ is a good resource for tips and tricks and a good place for asking questions, too ;) regards, David > > > >> Hi, > >> > >> Anyone can suggest me how to pass GET vars or SID to "templatized" > >> page? > >> > >> $mySmarty -> Display("my_page.tpl.html"); <- HOW to add GET or SID > >> here? > > > > > > http://smarty.php.net/manual/en/language.variables.smarty.request.php > > > > http://smarty.php.net/manual/en/language.variables.smarty.const.php > > > > Regards, > > David > > > > ********************************************* > * Best Regards --- Andrei Verovski > * > * Personal Home Page > * http://snow.prohosting.com/guru4mac > * Mac, Linux, DTP, Development, IT WEB Site > ********************************************* > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.smarty.general (#9727) next »