Hi,

I am using a ViewScript decorator on a Zend_Form but i can't get the form from the view script.

Here is the code:


demogForm.phtml
___
...
<?php
 echo $this->form //Notice: Trying to get property of non-object ...
?>
...
___


MyForm.php
___
$this->setDecorators(array( array('ViewScript', array('viewScript' => 'demogForm.phtml'))));
___


I have inspected the $this object in the view but it seems that there is no property.

Thanks

- Mathieu Suen

Reply via email to