예제 #1
0
 /**
  * Renders a view
  *
  * @param string $viewName view name
  * @return string result of the rendering
  */
 protected function render($viewName)
 {
     try {
         //Если шаблона нет в стандартном пути, или в нем ошибки берем базовый
         $result = parent::render($viewName);
     } catch (\Exception $e) {
         $result = $this->controller->render("@skeeks/cms/modules/admin/views/base-actions/grid-standart", (array) $this->viewParams);
     }
     return $result;
 }
예제 #2
0
 /**
  * Renders a view
  *
  * @param string $viewName view name
  * @return string result of the rendering
  */
 protected function render($viewName)
 {
     try {
         $output = parent::render($viewName);
     } catch (InvalidParamException $e) {
         $output = parent::render('_form');
     }
     return $output;
 }