extending include_php...
| From: | Ulrik Nielsen | Date: | Thu, 22 Jan 2004 12:30:39 +0000 |
| Subject: | extending include_php... | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10862@lists.php.net to get a copy of this message | ||
Hi there,
I would like to extend the inclide_php punction of smarty.
So that I could do file checking.. ex:
-- smarty template ----
{include_php file="file-xxx.php"}
-----------------------
-- smarty function ----
if file exists;
include custom/file-xxx.php
else
include default/file-xxx.php
-----------------------
- without actualy hacking the Smarty base class.. is there a way of achiving this ?
thanks in advance
--
>> ulrik nielsen
excuse of the day : bit bucket overflow
from bofh : http://www.cs.wisc.edu/~ballard/bofh/