user1785251
user1785251

Reputation:

Zend exception for default layout

I am using zend framework for my application I have created all controllers and phtml files. Now I need to keep a login page. How can I create a login page without displaying the default.phtml contents.

sombody please help me..

Upvotes: 1

Views: 70

Answers (1)

Tim Fountain
Tim Fountain

Reputation: 33148

Rather than disabling the layout you probably want to get the login action to use a different layout instead. In your controller:

$this->getHelper('layout')->setLayout('login');

Upvotes: 2

Related Questions