<path d="M28.8251 39.5604C26.5388 39.5604 24.3039 38.8992 22.403 37.6603C20.502 36.4214 19.0204 34.6605 18.1455 32.6004C17.2706 30.5402 17.0417 28.2732 17.4877 26.0861C17.9338 23.899 19.0347 21.8901 20.6513 20.3133C22.2679 18.7365 24.3276 17.6627 26.5699 17.2276C28.8122 16.7926 31.1365 17.0159 33.2487 17.8692C35.3609 18.7226 37.1662 20.1677 38.4364 22.0218C39.7065 23.8759 40.3845 26.0558 40.3845 28.2857C40.3808 31.2749 39.1618 34.1405 36.9948 36.2542C34.8277 38.3678 31.8897 39.5569 28.8251 39.5604ZM28.8251 21.5209C27.4533 21.5209 26.1124 21.9176 24.9718 22.661C23.8313 23.4043 22.9423 24.4608 22.4173 25.6969C21.8924 26.933 21.7551 28.2932 22.0227 29.6055C22.2903 30.9177 22.9508 32.1231 23.9208 33.0692C24.8908 34.0153 26.1266 34.6595 27.472 34.9206C28.8174 35.1816 30.2119 35.0476 31.4792 34.5356C32.7465 34.0236 33.8297 33.1565 34.5918 32.0441C35.3539 30.9316 35.7607 29.6237 35.7607 28.2857C35.7589 26.4921 35.0276 24.7725 33.7273 23.5042C32.427 22.236 30.6639 21.5227 28.8251 21.5209Z" fill="white"/> <path d="M29 72L6.75966 46.4169C6.45063 46.0327 6.1448 45.6461 5.84221 45.2571C2.04316 40.376 -0.00917767 34.414 3.0853e-05 28.2857C3.0853e-05 20.7839 3.05538 13.5893 8.49393 8.28469C13.9325 2.98009 21.3087 0 29 0C36.6913 0 44.0675 2.98009 49.5061 8.28469C54.9446 13.5893 58 20.7839 58 28.2857C58.0092 34.4112 55.9578 40.3705 52.1604 45.2494L52.1578 45.2571C52.1578 45.2571 51.3669 46.2703 51.2482 46.4066L29 72ZM10.0498 42.1586C10.0551 42.1586 10.6667 42.9506 10.8065 43.1203L29 64.0491L47.2173 43.092C47.3333 42.9506 47.9502 42.1534 47.9528 42.1509C51.0562 38.1629 52.7333 33.2924 52.7272 28.2857C52.7272 22.1478 50.2274 16.2614 45.7777 11.9212C41.328 7.58112 35.2929 5.14286 29 5.14286C22.7071 5.14286 16.672 7.58112 12.2223 11.9212C7.77258 16.2614 5.27275 22.1478 5.27275 28.2857C5.26722 33.2955 6.94625 38.1688 10.0525 42.1586H10.0498Z" fill="white"/> </svg> <span> <?= $estate->country->name ?> </span> <span> <?= $estate->region->name ?> </span> </div> </div> </div> </div> <div class="scroll-down"> <svg width="21" height="12" viewBox="0 0 21 12" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M3.2946 0L10.5887 7.5L17.8828 0L20.8005 1.5L10.5887 12L0.376953 1.5L3.2946 0Z" fill="white"/> </svg>
fill="white"/> </svg> <span> <?= $estate->country->name ?> </span> <span> <?= $estate->region->name ?> </span> </div> </div> </div> </div> <div class="scroll-down">
{ $_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
$this->currencyCountryId = $estate->country_id; return $this->render('single', [ 'estate' => $estate, 'comments' => $comments, 'childEstate' => $childEstate, 'currency' => $currency ]); } public function actionComment($country, $slug) { $params = \Yii::$app->request->post();
$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();
$_GET = [ 'country' => 'italy', 'slug' => 'villa-na-ghivopisnyh-bolonskih-holmah', ]; $_SESSION = [ '__flash' => [], 'ipInfo' => unserialize('O:8:"stdClass":14:{s:6:"status";s:7:"success";s:7:"country";s:13:"United States";s:11:"countryCode";s:2:"US";s:6:"region";s:2:"VA";s:10:"regionName";s:8:"Virginia";s:4:"city";s:7:"Ashburn";s:3:"zip";s:5:"20149";s:3:"lat";d:39.0438;s:3:"lon";d:-77.4874;s:8:"timezone";s:16:"America/New_York";s:3:"isp";s:16:"Amazon.com, Inc.";s:3:"org";s:19:"AWS EC2 (us-east-1)";s:2:"as";s:24:"AS14618 Amazon.com, Inc.";s:5:"query";s:14:"54.173.221.132";}'), 'preference_currency' => 'USD', ];