include other .phtml file in action in zend framework3 -


in zf3, trying include other .phtml file, except default one.

public function indexaction()         {             return new viewmodel();         } 

as in below code zend-framework search , include index.phtml default, need add details.phtml. how can this.

thanks.

you can try below code.

public function indexaction()     {         //suppose in application module         $this->layout()->settemplate('application\index\details');         return new viewmodel();     } 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

javascript - How to bind ViewModel Store to View? -

javascript - Solution fails to pass one test with large inputs? -