$breadcrumbs[] = [ 'label' => $model->productCategoryVia->name, 'url' => [$model->productCategoryVia->handler->handler, 'id' => $model->productCategoryVia->id], 'property' => 'v:title', 'rel' => 'v:url' ]; /** Product subcategory breadcrumb, depth 3 */ $breadcrumbs[] = [ 'label' => $model->productSubCategoryVia->title, 'url' => Url::toRoute($model->productSubCategoryVia->urlRule->url), 'property' => 'v:title', 'rel' => 'v:url' ]; /** Product title, depth 4 */ $breadcrumbs[] = [ 'label' => '<span property = "v:title">' . $model->title, ];
'property' => 'v:title', 'rel' => 'v:url' ]; /** Product subcategory breadcrumb, depth 3 */ $breadcrumbs[] = [ 'label' => $model->productSubCategoryVia->title, 'url' => Url::toRoute($model->productSubCategoryVia->urlRule->url), 'property' => 'v:title', 'rel' => 'v:url' ]; /** Product title, depth 4 */ $breadcrumbs[] = [
{ switch ($model::tableName()) { case ProductCategory::tableName(): $this->generateProductCategory($model, $view); break; case Products::tableName(): $this->generateProduct($model, $view); break; default: $this->generate($model, $view); } }
return false; } if ($this->route !== Yii::$app->errorHandler->errorAction && !ArrayHelper::isIn($this->route, $this->routeWithoutModel)) { if ($this->initModel($action)) { (new MetaTagRegister())->init($this->model); (new Breadcrumbs)->init($this->model, Yii::$app->view); } } return true; } /**
break; } } $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules
$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 = [ 'id' => 170, ]; $_SESSION = [ '__flash' => [], 'lysenkobv\\GeoIP\\GeoIP:44.211.188.101' => unserialize('O:22:"lysenkobv\\GeoIP\\Result":2:{s:7:"' . "\0" . '*' . "\0" . 'data";a:4:{s:9:"continent";a:3:{s:4:"code";s:2:"NA";s:10:"geoname_id";i:6255149;s:5:"names";a:8:{s:2:"de";s:11:"Nordamerika";s:2:"en";s:13:"North America";s:2:"es";s:13:"Norteamérica";s:2:"fr";s:17:"Amérique du Nord";s:2:"ja";s:15:"北アメリカ";s:5:"pt-BR";s:17:"América do Norte";s:2:"ru";s:31:"Северная Америка";s:5:"zh-CN";s:9:"北美洲";}}s:7:"country";a:3:{s:10:"geoname_id";i:6252001;s:8:"iso_code";s:2:"US";s:5:"names";a:8:{s:2:"de";s:3:"USA";s:2:"en";s:13:"United States";s:2:"es";s:14:"Estados Unidos";s:2:"fr";s:11:"États-Unis";s:2:"ja";s:21:"アメリカ合衆国";s:5:"pt-BR";s:14:"Estados Unidos";s:2:"ru";s:6:"США";s:5:"zh-CN";s:6:"美国";}}s:8:"location";a:3:{s:15:"accuracy_radius";i:1000;s:8:"latitude";d:37.751;s:9:"longitude";d:-97.822;}s:18:"registered_country";a:3:{s:10:"geoname_id";i:6252001;s:8:"iso_code";s:2:"US";s:5:"names";a:8:{s:2:"de";s:3:"USA";s:2:"en";s:13:"United States";s:2:"es";s:14:"Estados Unidos";s:2:"fr";s:11:"États-Unis";s:2:"ja";s:21:"アメリカ合衆国";s:5:"pt-BR";s:14:"Estados Unidos";s:2:"ru";s:6:"США";s:5:"zh-CN";s:6:"美国";}}}s:13:"' . "\0" . '*' . "\0" . 'attributes";a:2:{s:8:"location";O:24:"lysenkobv\\GeoIP\\Location":2:{s:3:"lat";d:37.751;s:3:"lng";d:-97.822;}s:7:"country";s:13:"United States";}}'), 'LANG_GEO' => [ 'language' => 'en-US', ], ];