<br> <a href="mailto:<?=$address->email?>"><?=$address->email?></a> </div> </div> <div id="tb"> <div style=" float: left; margin-right: 31px;"> <img src="/frontend/web/images/prezident.jpg" alt="" style="width: 191px;border: solid 8px #dbedfb;"> </div> <div id="slider"> <?php $i = 0; foreach($slides as $slide): ?> <div class="item right <?= $i == 0 ? 'act' : null ?>"> <!--<div class="b1"><img src="<?=str_replace('/frontend/web','',$slide->little_img_url)?>" alt="" /></div>--> <div class="b1"><img src="<?=$slide->little_img_url?>" alt="" /></div> <div class="b2"> <img src="<?=$slide->main_img_url?>" alt="" /> <!--<img src="<?=str_replace('/frontend/web','',$slide->main_img_url)?>" alt="" />--> <div class="text" style="line-height: 0%;"> <strong><?=$slide->heading_az?></strong><span style=""><?=$slide->{'text_'.$lang}?></span></div> </div>
</div> <div id="tb"> <div style=" float: left; margin-right: 31px;"> <img src="/frontend/web/images/prezident.jpg" alt="" style="width: 191px;border: solid 8px #dbedfb;"> </div> <div id="slider"> <?php $i = 0; foreach($slides as $slide): ?> <div class="item right <?= $i == 0 ? 'act' : null ?>"> <!--<div class="b1"><img src="<?=str_replace('/frontend/web','',$slide->little_img_url)?>" alt="" /></div>--> <div class="b1"><img src="<?=$slide->little_img_url?>" alt="" /></div> <div class="b2"> <img src="<?=$slide->main_img_url?>" alt="" /> <!--<img src="<?=str_replace('/frontend/web','',$slide->main_img_url)?>" alt="" />-->
*/ public function renderPhpFile($_file_, $_params_ = []) { ob_start(); ob_implicit_flush(false); extract($_params_, EXTR_OVERWRITE); require($_file_); return ob_get_clean(); } /** * Renders dynamic content returned by the given PHP statements.
$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;
* @since 2.0.1 */ public function renderContent($content) { $layoutFile = $this->findLayoutFile($this->getView()); if ($layoutFile !== false) { return $this->getView()->renderFile($layoutFile, ['content' => $content], $this); } else { return $content; } } /**
* @return string the rendering result. * @throws InvalidParamException 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 * @return string the rendering result of the layout with the given static string as the `$content` variable.
return "$name: $message"; } else { return $this->controller->render($this->view ?: $this->id, [ 'name' => $name, 'message' => $message, 'exception' => $exception, ]); } } }
$args = $this->controller->bindActionParams($this, $params); Yii::trace('Running action: ' . get_class($this) . '::run()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } if ($this->beforeRun()) { $result = call_user_func_array([$this, 'run'], $args); $this->afterRun(); return $result; } else { return null; }
} $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); Yii::$app->controller = $oldController; return $result; } else { $id = $this->getUniqueId(); throw new InvalidRouteException('Unable to resolve the request "' . ($id === '' ? $route : $id . '/' . $route) . '".');
$params = $this->catchAll; unset($params[0]); } try { Yii::trace("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } else { $response = $this->getResponse(); if ($result !== null) { $response->data = $result;
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-local.php'), require(__DIR__ . '/../config/main.php'), require(__DIR__ . '/../config/main-local.php') ); $application = new yii\web\Application($config); $application->run();
$_GET = [ 'lang' => 'az', 'ru' => '', ]; $_SERVER = [ 'CONTEXT_DOCUMENT_ROOT' => '/var/www/hayatadm/public_html', 'CONTEXT_PREFIX' => '', 'DOCUMENT_ROOT' => '/var/www/hayatadm/public_html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'www.yenihayat.az', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_X_FORWARDED_FOR' => '3.23.101.60', 'HTTP_X_FORWARDED_HOST' => 'www.yenihayat.az', 'HTTP_X_FORWARDED_PORT' => '80', 'HTTP_X_FORWARDED_PROTO' => 'http', 'HTTP_X_FORWARDED_SERVER' => 'www.yenihayat.az', 'HTTP_X_REAL_IP' => '3.23.101.60', 'PATH' => '/bin:/usr/bin', 'PHP_INI_SCAN_DIR' => '/opt/cpanel/ea-php56/root/etc:/opt/cpanel/ea-php56/root/etc/php.d:.', 'QUERY_STRING' => 'ru=', 'REDIRECT_QUERY_STRING' => 'ru=', 'REDIRECT_SCRIPT_URI' => 'http://www.yenihayat.az/az/error', 'REDIRECT_SCRIPT_URL' => '/az/error', 'REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZjQZ0MykIZq-iNZqGNO0eQAAAAE', 'REDIRECT_URL' => '/az/error', 'REDIRECT_isproxyrequest' => '1', 'REMOTE_ADDR' => '3.23.101.60', 'REMOTE_PORT' => '39964', 'REQUEST_METHOD' => 'GET', 'REQUEST_SCHEME' => 'http', 'REQUEST_URI' => '/az/error?ru=', 'SCRIPT_FILENAME' => '/var/www/hayatadm/public_html/frontend/web/index.php', 'SCRIPT_NAME' => '/frontend/web/index.php', 'SCRIPT_URI' => 'http://www.yenihayat.az/az/error', 'SCRIPT_URL' => '/az/error', 'SERVER_ADDR' => '109.127.8.238', 'SERVER_ADMIN' => 'webmaster@yenihayat.az', 'SERVER_NAME' => 'www.yenihayat.az', 'SERVER_PORT' => '80', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'TZ' => 'Asia/Baku', 'UNIQUE_ID' => 'ZjQZ0MykIZq-iNZqGNO0eQAAAAE', 'PHP_SELF' => '/frontend/web/index.php', 'REQUEST_TIME_FLOAT' => 1714690512.994389057159423828125, 'REQUEST_TIME' => 1714690512, 'argv' => [ 'ru=', ], 'argc' => 1, ]; $_SESSION = [ '__flash' => [], 'language.lang' => 'az', ];