View Single Post
  #3 (permalink)  
Old 07-31-2008, 05:46 PM
ives1227 ives1227 is offline
Junior Member
 
Join Date: Jul 2008
Posts: 2
Default script should be viewScript

Hi folks,

I had the same problem and it is a little tricky to spot: 'script' has to be 'viewScript'.

PHP Code:
$this->setDecorators( array( array('ViewScript', array('script' => 'loginForm.phtml')))); 
to

PHP Code:
$this->setDecorators( array( array('ViewScript', array('viewScript' => 'loginForm.phtml')))); 
I found this in the Zend documentation: 17.7.12. Zend_Form_Decorator_ViewScript here:

Zend Framework: Documentation

Hope this helps!
Valdeva
Reply With Quote