I tried to create a showAction for my angular UI and it's mirror only the content of indexAction in RegisterController
public function showAction()
{
$this->view->setRenderLevel(
View::LEVEL_LAYOUT
);
echo $this->view->getRender('register', 'index');
}
But it said $form = Undefined when i tried to access to register/show, seem like getRender didn't add "$form = new RegisterForm;", anyone know how to fix this, please?