</div> </div> </div> <? else: ?> <ul class="new_catalog_list<?= !empty($class) ? ' ' . $class : '' ?>"> <?php foreach ($models as $i): ?> <?= !empty($previous_generation) ? $this->render('./prev_gen_item', ['i' => $i]) : $this->render('./item', ['i' => $i]) ?> <?php endforeach; ?> </ul> <? endif; ?>
</div> </div> <? else: ?> <ul class="new_catalog_list<?= !empty($class) ? ' ' . $class : '' ?>"> <?php foreach ($models as $i): ?> <?= !empty($previous_generation) ? $this->render('./prev_gen_item', ['i' => $i]) : $this->render('./item', ['i' => $i]) ?> <?php endforeach; ?> </ul> <? endif; ?>
{ $_obInitialLevel_ = ob_get_level(); ob_start(); ob_implicit_flush(false); extract($_params_, EXTR_OVERWRITE); try { require $_file_; return ob_get_clean(); } catch (\Exception $e) { while (ob_get_level() > $_obInitialLevel_) { if (!@ob_end_clean()) { ob_clean(); }
$this->renderers[$ext] = Yii::createObject($this->renderers[$ext]); } /* @var $renderer ViewRenderer */ $renderer = $this->renderers[$ext]; $output = $renderer->render($this, $viewFile, $params); } else { $output = $this->renderPhpFile($viewFile, $params); } $this->afterRender($viewFile, $params, $output); } array_pop($this->_viewFiles); $this->context = $oldContext;
* @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.
<div class="tab-content"> <div class="tab-pane fade in active" id="actual"> <?= $this->render($main_views_path . '/models/list', ['models' => $models_actual, 'class' => 'row']) ?> </div> <div class="tab-pane fade in" id="old"> <?= $this->render($main_views_path . '/models/list', ['models' => $models_old, 'class' => 'row']) ?> </div> <?= \Banners\Helper::show(7) ?> </div> </div>
{ $_obInitialLevel_ = ob_get_level(); ob_start(); ob_implicit_flush(false); extract($_params_, EXTR_OVERWRITE); try { require $_file_; return ob_get_clean(); } catch (\Exception $e) { while (ob_get_level() > $_obInitialLevel_) { if (!@ob_end_clean()) { ob_clean(); }
$this->renderers[$ext] = Yii::createObject($this->renderers[$ext]); } /* @var $renderer ViewRenderer */ $renderer = $this->renderers[$ext]; $output = $renderer->render($this, $viewFile, $params); } else { $output = $this->renderPhpFile($viewFile, $params); } $this->afterRender($viewFile, $params, $output); } array_pop($this->_viewFiles); $this->context = $oldContext;
* @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.
* These parameters will not be available in the layout. * @return string the rendering result. * @throws InvalidArgumentException if the view file or the layout file does not exist. */ public function render($view, $params = []) { $content = $this->getView()->render($view, $params, $this); return $this->renderContent($content); } /** * Renders a static string by applying a layout. * @param string $content the static string being rendered
'models_actual' => $models_actual, 'models_old' => $models_old, 'articles' => ArticlesHelper::getArticlesByMark($mark->id), 'dealers' => $dealers, 'seo' => $this->seo, 'testdrives' => $testdrives, 'publications' => $publications, ]); } public function actionSerie($mark = '', $serie = '') { $mark = $this->findModelMark($mark);
$args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
} $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; }
$params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) {
{ try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
require(__DIR__ . '/../../common/config/main.php'), require(__DIR__ . '/../../common/config/main-local.php'), require(__DIR__ . '/../config/main.php'), require(__DIR__ . '/../config/main-local.php') ); (new yii\web\Application($config))->run(); function dump($data, $var_dump = false, $die = true) { if ($_SERVER['REMOTE_ADDR'] == '46.130.100.23') { echo '<pre>';
$_GET = [ 'domain' => 'murmansk', 'mark' => 'ssangyong', ]; $_SESSION = [ '__flash' => [], 'site_locality' => [ 'slug' => 'murmansk', 'host' => 'avtopotok.com', 'defaultSubDomain' => 'moscow', 'defaultHost' => 'avtopotok.com', 'isCity' => true, 'isState' => false, 'cityID' => 172160, 'stateID' => 550, 'countryID' => 7, 'title' => 'Murmansk', 'titleRp' => 'Мурманске', 'titleRu' => 'Мурманск', 'defaultTitleRu' => 'Мурманск', 'defaultTitleRp' => 'Мурманске', 'http' => 'http://', 'textCounters' => '<!-- Yandex.Metrika counter --> <script type="text/javascript" > (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter47410282 = new Ya.Metrika2({ id:47410282, clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true, trackHash:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/tag.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks2"); </script> <noscript><div><img src="https://mc.yandex.ru/watch/47410282" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter --><!--LiveInternet counter--><script type="text/javascript"> document.write("<a href=\'//www.liveinternet.ru/click\' "+ "target=_blank><img src=\'//counter.yadro.ru/hit?t26.9;r"+ escape(document.referrer)+((typeof(screen)=="undefined")?"": ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth? screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+ ";h"+escape(document.title.substring(0,150))+";"+Math.random()+ "\' alt=\'\' title=\'LiveInternet: показано число посетителей за"+ " сегодня\' "+ "border=\'0\' width=\'88\' height=\'15\'><\\/a>") </script><!--/LiveInternet--> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-90374952-2"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(\'js\', new Date()); gtag(\'config\', \'UA-90374952-2\'); </script>', 'subdomain' => true, 'yandexCode' => 'cbfa7f3f2a9ccdbc', 'googleCode' => 'cW_bEeaMHC1tL1EZRNjPKdXj4mIbEeOyWwQcLL6OS4Q', 'seo' => [ 'title' => 'Автомобили в {name_russian_rp} — доска объявлений', 'desc' => 'Бесплатные объявления о продаже автомобилей с пробегом в {name_russian_rp}.', 'key' => 'продажа автомобилей, подержанные автомобили, цены, купить машину, авторынок, {name_russian_rp}', 'text' => '<p>Globauto.ru — автомобильный портал в {name_russian_rp} для приобретения и продажи новых и авто с пробегом. Ежедневно представлены актуальные новости и тест-драйвы.</p> <p>База авто объявлений обновляется и пополняется ежедневно, более тысячи новых предложений каждый день.</p>', 'footer' => '<center>Администрация сайта не несет ответственности за размещенные объявления и информацию о ценах и характеристиках автомобилей.</br>© 2011 - 2020 </b> Avtopotok.com </b> - каталог новых автомобилей и бесплатных объявлений о продаже подержанных авто.</center>', ], ], ];