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 -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -