smarty custom functions namespaces
Michael Davey <[email protected]> Thu, 21 Jul 2005 11:19:03 +0100
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Organization | Artimi Ltd |
| Message-ID | <[email protected]> |
Hi,
I've added a crude form of namespaces to my private copy of Smarty. A
template function like:
{namespace:test}
...causes the test() function in the smarty_function_namespace class to
be called.
I'm planning to use this feature in TikiWiki to provide accessor-like
template functions to access various data: article::title,
article::description and so on. I though that this might be of more
general use, so here is a patch for this morning's CVS snapshot of Smarty.
--
Michael
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
smarty_namespace_patch.tar.gz
(application/gzip, 1.3 KB) - not displayed