public function init() { Yii::$app->getModule('admin/halo.user')->contextMenu(); parent::init(); $menuEvent = new Menu(); $menuEvent->items[] = ['label' => 'Users', 'options' => ['class' => 'header']]; $menuEvent->items[] = ['label' => 'Home', 'url' => ['/user/admin/index'], 'icon' => 'fa fa-home']; $menuEvent->items[] = ['label' => 'Add user', 'url' => ['/user/admin/create'], 'icon' => 'fa fa-plus']; Yii::$app->trigger('halo.devtools.menu', $menuEvent); Yii::$app->view->params['sidebarMenu'] = $menuEvent->items; }
public function beforeAction($action) { if (!parent::beforeAction($action)) { return false; } if (Yii::$app->getRequest()->getCookies()->has('language')) { Yii::$app->language = Yii::$app->getRequest()->getCookies()->getValue('language'); //die(Yii::$app->language); } return true; // or false to not run the action }
public function actionUpdateProfile($id) { return parent::actionUpdateProfile($id); }
public function behaviors() { return parent::behaviors(); }
/** * @param string $id * @param Module2 $module * @param Finder $finder * @param array $config */ public function __construct($id, $module, Finder $finder, $config = []) { $this->finder = $finder; parent::__construct($id, $module, $config); }
public function init() { parent::init(); $this->_buttons = array(array('title' => 'Kembali ke Daftar', 'link' => 'index', 'class' => 'info', 'id' => 'btnList', 'rule' => 'all'), array('title' => 'Tambah', 'link' => 'create', 'class' => 'info', 'id' => 'btnCreate', 'rule' => 'all')); $this->_pagetitle = array('_title' => 'Data Master :: Pengguna ' . Yii::$app->params['application']['name'], '_breadcrumbs' => '', '_module' => Yii::$app->awscomponent->string_ucfirst('Manajemen Pengguna'), '_subModule' => ''); }