Пример #1
0
 /**
  * Checking properly before view execute
  *
  * @param $contEx
  * @return string
  */
 private function checkNoViewAndIsAjax($contEx)
 {
     if (!empty($this->routingInfo['ajax']) || property_exists($contEx, 'options') && is_array($contEx::$options) && isset($contEx::$options['wholeControllerIsAjax'])) {
         controllerManager::$isAjax = true;
     } elseif (property_exists($contEx, 'noView') && is_array($contEx::$noView) && !empty($contEx::$noView) && in_array($this->routingInfo['function'], $contEx::$noView) || property_exists($contEx, 'options') && !empty($contEx::$options['noView'])) {
         controllerManager::$noView = true;
     }
 }