/** * Initializes the view before invoking an action method. * * Override this method to solve assign variables common for all actions * or prepare the view in another way before the action is called. * * @param Tx_Extbase_View_ViewInterface $view The view to be initialized * * @return void */ protected function initializeView(Tx_Extbase_MVC_View_ViewInterface $view) { parent::initializeView($view); $view->assign('layout', $GLOBALS['TSFE']->type > 0 ? 'Widget' : 'Profile'); }
/** * Initializes the view before invoking an action method. * * @param Tx_Extbase_View_ViewInterface $view The view to be initialized * @return void * @author Romain Ruetschi <*****@*****.**> */ protected function initializeView(Tx_Extbase_MVC_View_ViewInterface $view) { parent::initializeView($view); $this->view = t3lib_div::makeInstance($this->viewAdapterClassName, $this->view); }