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

Can't change my layout

Hi,

I'm trying to set a different layout for the login page. But, I'm ending with the main layout all the time. Did I forget something?

public function initialize() {

    $this->view->setLayout('session');
    $this->view->setTemplateAfter('session'); <==== Or Before give me the same result
    Tag::setTitle('Sign Up/Sign In');
    parent::initialize();

}

Thank you !



31.3k

Solve ! I Move my content to a main file and let {{ content() }} in the index file.