Re: How to order blocks in the template class

From: Date: Thu, 19 Sep 2002 08:54:42 +0000
Subject: Re: How to order blocks in the template class
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2349@lists.php.net to get a copy of this message
Use template like that: <!-- BEGIN test --> <!-- BEGIN test1 --> <b>{VAR1}</b> <!-- END test1 --> <!-- BEGIN test2 --> <i>{VAR1}</i> <!-- END test2 --> <!-- END test --> and parse test always after test1 and test2. -Ano On Thu, 2002-09-19 at 11:22, Torsten Rosenberger wrote: > Hello > > Is it possible to use blocks on different positions as they are in the > template file. > > Example: > blocks.html > > <!-- Begin test1 --> > <b>{VAR1}</b> > <!-- END test1 --> > > > <!-- Begin test2 --> > <i>{VAR1}</i> > <!-- END test2 --> > > I'd like to call the blocks in different order > > test1 > test2 > test1 > > but i always get the order as it is in the template > > test1 > test1 > test2 > > Is there any way to do this? > > BR/Torsten Rosenberger > > > > > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.pear.general (#2349) next »