This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

layout modification with filters

Notes and reports about symfony 1.0.x stable

layout modification with filters

by staff » Sun Jul 08, 2012 9:02 am

Hello,

created clas which change layout in my project site, but if in some layout's using layout_admin it's rewrites by this filter code

Code: Select all
$this->getContext()->getController()->getActionStack()->getFirstEntry()->getActionInstance()->setLayout($layout);
$this->getContext()->getResponse()->addStyleSheet($styleSheet);


How i can check if using layout_admin don't change him to another layout?

If read this in code get null data.
Code: Select all
$this->getContext()->getController()->getActionStack()->getFirstEntry()->getActionInstance()->getLayout();


Maybe know how check layout?
staff
Junior Member
 
Posts: 5
Joined: Thu Mar 29, 2012 5:44 pm

Re: layout modification with filters

by staff » Tue Sep 25, 2012 7:42 am

topic crated in march, now september.... Why so lazy working in forum?
staff
Junior Member
 
Posts: 5
Joined: Thu Mar 29, 2012 5:44 pm