function __construct($view = null) { try{ parent::__construct('./views/'); if($view !== null){ parent::setView($view); } } catch(Exception $e) { die($e->getMessage()); } }
public function __construct($model) { parent::__construct($model, self::TPL); Assets::get()->addJs(['/js/parsley.js', '/js/parsley-i18n/it.js', '/js/bootstrap-timepicker.js', '/js/confirm-delete.js', '/js/sensor-settings.js']); Assets::get()->addCss(['/css/sensor-settings.css']); Assets::get()->addOnReadyJs(' $(function () { $(\'[data-toggle="tooltip"]\').tooltip({trigger : "click", container : "body"}); }) '); }
public function __construct($model) { parent::__construct($model, self::TPL); }
public function __construct($model) { parent::__construct($model, self::TPL); Assets::get()->addJs(['/js/highcharts.js', '/js/highcharts-i18n/it_IT.js']); }
public function __construct($model) { parent::__construct($model, self::TPL); Assets::get()->addJs([]); }
public function __construct($model) { parent::__construct($model, self::TPL); Assets::get()->addJs(['/js/parsley.js', '/js/parsley-i18n/it.js', '/js/bootstrap-timepicker.js', '/js/confirm-delete.js', '/js/program-settings.js']); Assets::get()->addCss(['/css/bootstrap-timepicker.css', '/css/program-settings.css']); }