{ $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.
); } return $this->render( $this->view, ['modalId' => $this->modalId, 'buttonClass' => $this->buttonClass, 'buttonTitle' => $this->buttonTitle] ); } private function getYearIssues() { $startYear = 1985; $currentYear = date('Y');
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();
<ul id="autoshow-menu" class="nav"> <li class="active"><a href="<?php echo $scr?>"><i class="fa fa-home"></i></a></li> <li><?= modules\company\widgets\RequestButtonWidget::widget(['type' => modules\company\enums\RequestAnswerType::SHOP, 'view' => 'shop', 'buttonClass' => '']); ?></li> </ul> </div> </div> </div> <div class="row"> <div class="col-sm-12 col-md-9 no-padding">
function parse($tName, $p = []) { global $string, $BD, $BDL, $DR; extract($p); ob_start("sanitizeOutput"); include $this->CWD . '/' . $tName; //return str_replace(['> <', ], '><', preg_replace("#\\s+#ism"," ",ob_get_clean())); return ob_get_clean(); } function &loadOverlay($name, $objName = '')
'files', 'ads', 'urlDir', 'pageOne', 'commentForm' ) ); if ($r['comnum']) { } if ($r['price']) {
break; case '': $aid = ['id' => $r['id']]; $cacheKey = Cache::getKey('shop', $r['id']); if (1 || !$r['cache'] = Cache::get($cacheKey)) { include $this->CWD . '/shop.php'; } else { extract($r['cache']); } if (!isBot() && !mt_rand(0, 6)) { dsrc::call('upd_shop_incViews', $aid); }
]; } $mObj = $kern->loadModule($mod, $l); $mObj->script = $BD . '/' . ($l ? $l . '/' : ''); $mObj->caller = $this; $pe['menuItem'] = $l; $mObj->go($l, $mObj->script, $p, $this, $pe); } else { $this->testError404($l); } $this->finalActions();
\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';