can we change the layouts e.g Column1, column2
by using any way for the same controller
example
for productsController index page become use column1
and view page use column2 layout
is there way to override the layouts in views
Please Help…!
can we change the layouts e.g Column1, column2
by using any way for the same controller
example
for productsController index page become use column1
and view page use column2 layout
is there way to override the layouts in views
Please Help…!
Just change $this->layout in a controller action, or view.
/Tommy
thanks
i am dumb how i forget that actually maybe i m in hurry
Thanks for quick reply
Yes,
use the code as
$this->layout="your layout"
And Place that layout in
views->layouts
directory.
are you from Pak?
yes from Pak
WOw…thanks… it turns out to be quite easy in specifying particular layout for certain view/controller… thanks…
Thanks…