We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How do I define a Layout for Login and another for the administration screen using the same module ?



77.7k
Accepted
answer
edited May '18
class SomeController extends \Phalcon\Mvc\Controller {
    public function indexAction() {
        $this->view->setLayout('my-layout');
    }
}