How to make templates inside templates?
| From: | Henno Täht | Date: | Mon, 08 Jul 2002 08:11:04 +0000 |
| Subject: | How to make templates inside templates? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5222@lists.php.net to get a copy of this message | ||
Hi,
I have a web page which looks like this one: http://phpnuke.org/
Now I'm thinking that maybe there is a painless way to somehow make some
template code reusable. There are many similar elements on that page: "Main
Menu", "For the Future", "Surveys", "Cool Links" etc. I think
it's possible
to 'define' the 'framework' for the box (which consists of the caption and
the formatted borders and background) only once, somewhere. And then use
that framework to easily add some additional boxes by only specifying the
caption and the content. Which are the various ways doing it with smarty?
Henno