I use database to set layout as:
public function indexAction()
{
//$layout = get layout from database
//$this->view->pick(layout);
//AS...
$this->view->pick('index/testPickView');
}
When var_dump $this->view I see:
["_pickView":protected]=>
array(2) {
[0]=>
string(18) "index/testPickView"
[1]=>
string(5) "index"
}
I want get : "index/testPickView" to check override layout from template on
/**
* Before render view
*
* @param PEvent $event
* @param PView $view
*/
public function beforeRender(PEvent $event, PView $view){
//I want get : "index/testPickView" in here.
}
Thanks!