/**
  * Initialize page
  *
  */
 protected function init()
 {
     $this->di = Di::getDefault();
     /* Init template */
     $this->tpl = $this->di->get('template');
     /* Load CssFile */
     $this->tpl->addCss('jquery.dataTables.min.css')->addCss('dataTables.tableTools.min.css')->addCss('dataTables.colVis.min.css')->addCss('dataTables.colReorder.min.css')->addCss('dataTables.bootstrap.css')->addCss('select2.css')->addCss('select2-bootstrap.css')->addCss('centreon-wizard.css');
     /* Load JsFile */
     $this->tpl->addJs('jquery.dataTables.min.js')->addJs('dataTables.tableTools.min.js')->addJs('dataTables.colVis.min.js')->addJs('dataTables.colReorder.min.js')->addJs('bootstrap-dataTables-paging.js')->addJs('jquery.dataTables.columnFilter.js')->addJs('dataTables.bootstrap.js')->addJs('jquery.select2/select2.min.js')->addJs('jquery.validation/jquery.validate.min.js')->addJs('jquery.validation/additional-methods.min.js')->addJs('centreon-wizard.js');
     $this->tpl->assign('datatableObject', $this->datatableObject);
     parent::init();
 }
Exemplo n.º 2
0
 /**
  * Add the css file for this hook
  *
  * @param \Centreon\Internal\Template $tpl The current template
  */
 public static function addCss($tpl)
 {
     $tpl->addCss('c3.css');
 }
Exemplo n.º 3
0
 /**
  * Init template object
  */
 private function initTemplate()
 {
     $this->di->set('template', function () {
         $tmpl = new Template();
         $tmpl->initStaticFiles();
         return $tmpl;
     });
 }