public function init() { parent::init(); //find workflow by id $workflowId = app()->request->getParam('workflow_id', null); if ($workflowId !== null) { $this->setWorkflow(CPropertyValue::ensureInteger($workflowId)); } }
public function init() { parent::init(); if (app()->theme == null) { // if (Application::param('ADMIN_THEME') !== null) // Yii::app()->theme = Application::param('ADMIN_THEME'); // else Yii::app()->theme = 'indition'; } }
public function __construct($id, $module) { parent::__construct($id, $module); $this->auth = Yii::app()->authManager; }
public function __construct($id, $module = NULL) { parent::__construct($id, $module); //Yii::app()->layout = 'site'; }