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