|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
seishin Smarty n00b
Joined: 10 Apr 2009 Posts: 1
|
Posted: Fri Apr 10, 2009 9:38 am Post subject: Appel de méthode avec un paramètre array |
|
|
Bonjour à tous,
Voilà, si je fais cela, ça marche :
Code: | {php}
$this->assign('p1', array('controller'=>'guestbook'));
{/php}
{$zendview->url($p1, 'default', true)}
|
Par contre, si je fais cela :
Code: | {$zendview->url(array('controller'=>'guestbook'), 'default', true)}
|
Eh bien non... (ce serait plus sympa tout de même)
j'obtiens :
Quote: | Fatal error: Smarty error: [in layout.tpl line 27]: syntax error: unrecognized tag: $zendview->url(array('controller'=>'guestbook'), 'default', true) (Smarty_Compiler.class.php, line 455) in /var/www/smarty/Smarty.class.php on line 1092 |
J'en ai déduit que cela venait de l'expression régulière de la ligne 455 de Smarty_Compiler...
Quelqu'un a une idée ??
Merci
Bonne journée
Seishin
PS : $zendview est un objet Zend_View de Zend Framework mais le problème ne vient pas de lui |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|