Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

INVO Form Undefined when getRender

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?



1.1k
Accepted
answer

Ah, i solved it with $this->$view->$form= new ...