Recursive includes
| From: | Dana Freer | Date: | Wed, 19 Mar 2003 10:02:20 +0000 |
| Subject: | Recursive includes | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8735@lists.php.net to get a copy of this message | ||
Apologies if this has been asked before, but I am new to Smarty, and there
appears to be no faq...
One of my templates recursively includes itself and passes variables in the
include. Though this works fine, it seems to be inefficient (according to
the debug timings) and was wondering if there is a better way of doing this?
Are the included files automatically cached by Smarty?
eg. --- my.tpl ---
...
...
{include file="my.tpl" var1="abc" var2="def"}
...
...