{ $viewFile = $requestedFile = Yii::getAlias($viewFile); if ($this->theme !== null) { $viewFile = $this->theme->applyTo($viewFile); } if (is_file($viewFile)) { $viewFile = FileHelper::localize($viewFile); } else { throw new ViewNotFoundException("The view file does not exist: $viewFile"); } $oldContext = $this->context; if ($context !== null) { $this->context = $context; } $output = ''; $this->_viewFiles[] = [ 'resolved' => $viewFile,
* @throws InvalidCallException if the view cannot be resolved. * @see renderFile() */ public function render($view, $params = [], $context = null) { $viewFile = $this->findViewFile($view, $context); return $this->renderFile($viewFile, $params, $context); } /** * Finds the view file based on the given view name. * @param string $view the view name or the [path alias](guide:concept-aliases) of the view file. Please refer to [[render()]] * on how to specify this parameter.
* @param array $params the parameters (name-value pairs) that should be made available in the view. * @return string the rendering result. * @throws InvalidArgumentException if the view file does not exist. */ public function render($view, $params = []) { return $this->getView()->render($view, $params, $this); } /** * Renders a view file. * @param string $file the view file to be rendered. This can be either a file path or a [path alias](guide:concept-aliases). * @param array $params the parameters (name-value pairs) that should be made available in the view.
} public function run() { return $this->render($this->view, [ 'params' => $this->params, ]); } }
try { /* @var $widget Widget */ $config['class'] = get_called_class(); $widget = Yii::createObject($config); $out = ''; if ($widget->beforeRun()) { $result = $widget->run(); $out = $widget->afterRun($result); } } catch (\Exception $e) { // close the output buffer opened above if it has not been closed already if (ob_get_level() > 0) { ob_end_clean();
if (is_array(Yii::$app->params['widgets'][$place])) { foreach (Yii::$app->params['widgets'][$place] as $widget) { if (class_exists($widget['class'])) { $list[] = call_user_func([$widget['class'], 'widget'], $widget['params']); } } } return implode($separator, $list); }
</div> </div> <div class="col-xs-12 col-sm-12 col-md-3 no-padding hidden-sm hidden-xs"> <div class="container-fluid"> <div id="sidebar-container" class="row"> <div id="sidebar-content" class="col-sm-12"> <?= \core\helpers\WidgetHelper::widgets('right')?> <?= $this->getRightCol()?> </div> </div> </div> </div> </div>
return; } $response->trigger(\yii\web\Response::EVENT_BEFORE_SEND); $response->sendHeaders(); include(Yii::$app->getView()->theme->getBasePath() . '/views/layouts/' . $this->templName); $response->trigger(\yii\web\Response::EVENT_AFTER_SEND); $response->isSent = true; } /**
global $shortCodes; $shortCode = new \core\components\shortcode\ShortCode($shortCodes, $pe['content']); $pe['content'] = $shortCode->run(); $this->saveSessIds(); $this->parseEcho(); //$this->saveUA(); exit; } function testError404($urlDir) {
$mObj->go($l, $mObj->script, $p, $this, $pe); } else { $this->testError404($l); } $this->finalActions(); } function finalActions() { $pe =& $this->elem; if (!isset($pe['menuClickable']) && sizeof($pe['path']) > 2) {
\Yii::$app->trigger('beforeRequest'); $kern = new zlkern_kernel(); mod::$kern = $kern; mod::$page = $kern->loadModule('_page', 'page'); mod::$page->go(); \Yii::$app->trigger('afterRequest'); //Yii::app()->raiseEvent('onEndRequest',new CEvent(Yii::app())); // *** kernel classes *** / ZLK 2.2.0 Stable (Cobblestone-II) (DSRC Fast)
<?define('STIME',microtime(true)); include '../tavto.ru/kernel.php';