Пример #1
0
 /**
  * Возврат пути бокс файла с частью блока или формы
  * @param string $boxname
  * @return string
  */
 protected function getBoxPath($boxname)
 {
     $template = \View\ViewBundle::getTemplate();
     if (file_exists(KIT_APP . "/Views/Box/{$template}/{$boxname}.php")) {
         $box_path = KIT_APP . "/Views/Box/{$template}/{$boxname}.php";
     } else {
         if (file_exists(KIT_APP . "/Views/Box/{$template}/Notfound.php")) {
             $box_path = KIT_APP . "/Views/Box/{$template}/Notfound.php";
         } else {
             $box_path = KIT_CORE . '/Etc/SystemTpl/BoxNotFound.php';
         }
     }
     return $box_path;
 }
Пример #2
0
 /**
  * @param \Group\Form $form
  */
 public function __construct(\Group\Form $form)
 {
     $this->_form = $form;
     $this->_template = \View\ViewBundle::getTemplate();
 }