Exemple #1
0
 public function render($tpl = '')
 {
     switch ($this->getActionType()) {
         case 'login':
             $tpl = \Acd\conf::$DIR_TEMPLATES . '/ContentLogin.tpl';
             break;
         case 'error':
             $tpl = \Acd\conf::$DIR_TEMPLATES . '/ContentError.tpl';
             break;
         case 'index':
             $tpl = \Acd\conf::$DIR_TEMPLATES . '/ContentAdminIndex.tpl';
             break;
         case 'new':
             $tpl = \Acd\conf::$DIR_TEMPLATES . '/ContentAdminNew.tpl';
             break;
         case 'edit':
         case 'clone':
             $tpl = \Acd\conf::$DIR_TEMPLATES . '/ContentAdminEdit.tpl';
             break;
     }
     return parent::render($tpl);
 }
Exemple #2
0
 public function render($tpl = '')
 {
     return parent::render(\Acd\conf::$DIR_TEMPLATES . '/Tools.tpl');
 }
Exemple #3
0
 public function render($tpl = '')
 {
     return parent::render(\Acd\conf::$DIR_TEMPLATES . '/BaseSkeleton.tpl');
 }