Ahh forgive my Zend newbness, I'm trying to access this form, stored in:
layouts/scripts/layout.phtml
:
$this->layout()->userForm = $this->action('index', 'user');
within
class IndexController extends Zend_Controller_Action
{
public function init ()
{ /* Initialize action controller here */
}
public function indexAction ()
{
// here
}
}
The indexAction, I basically need the form to show up on the homepage in addition to being in the layout.
I tried accessing it with $this->_helper->layout()->userForm
but I suspect the code in the controller runs before the layout as it wasn't giving me what I wanted.