Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Appel de méthode avec un paramètre array

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
seishin
Smarty n00b


Joined: 10 Apr 2009
Posts: 1

PostPosted: Fri Apr 10, 2009 9:38 am    Post subject: Appel de méthode avec un paramètre array Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP