Example #1
0
	function __construct($view = null)
	{		
		try{
			parent::__construct('./views/');
			if($view !== null){
				parent::setView($view);
			}			
		} catch(Exception $e) {
			die($e->getMessage());
		}
	}
Example #2
0
    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"});
			})
		');
    }
Example #3
0
 public function __construct($model)
 {
     parent::__construct($model, self::TPL);
 }
Example #4
0
 public function __construct($model)
 {
     parent::__construct($model, self::TPL);
     Assets::get()->addJs(['/js/highcharts.js', '/js/highcharts-i18n/it_IT.js']);
 }
Example #5
0
 public function __construct($model)
 {
     parent::__construct($model, self::TPL);
     Assets::get()->addJs([]);
 }
Example #6
0
 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']);
 }