associative arrays with template_flexy ?
| From: | daniel dot garcia at assertio dot es | Date: | Tue, 27 May 2003 14:51:19 +0000 |
| Subject: | associative arrays with template_flexy ? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5619@lists.php.net to get a copy of this message | ||
Hi,
I'm quite happily using template_flexy, and I wonder if there is a way to
use associative arrays items for the variables. Currently I'm using an
array in the controller class to store all the html chunks, and I think it
would be quite convenient to access the chunks by a more explicit name.
I mean, I can use a template with: <p>{elements[31]}</p>
but I'd rather use an easier name like: <p>{elements['menu']}</p>
or <p>{elements['navigation_header']}</p>
Later, when I redisign (once more!) the site, I don't have to remember
which number contains which chunk.
Regards,
-- Daniel