Addtition to Smarty::assign
| From: | Manuel Holtgrewe | Date: | Wed, 02 Jan 2002 19:43:39 +0000 |
| Subject: | Addtition to Smarty::assign | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2474@lists.php.net to get a copy of this message | ||
Hi!
What about making Smarty::assign understand path-like variable names? $smarty->assign("modules/articles/1/name", "whatever") would add a variable like
$var = array(
"articles" => array(
"name" => "whatever"
)
);
to the Template variables. You could then access it with {$modules.articles[1].name}...
Manuel
--
what privilege do we have under the sun,
that gives us the right to the throne ?
In Flames - "Coerced Coexistence"