], ]; } public function actionIndex($item_id = null, $alias = null, $suf = null, $url = null) { //software //documentation if ($url != null and $url->query != null and !$url->query->ysclid) { $need2Line = $url->query->type == "documentation"; $head = $url->query->type == "documentation" ? "Скачать документацию" : "Скачать программное обеспечение"; } // Debug::DumpDie($need2Line); $uri = $_SERVER['REQUEST_URI']; $nedles = ["press-centre", "/ru/"];
public function actionIndex($item_id = null, $alias = null, $suf = null, $url = null) { //software //documentation if ($url != null and $url->query != null and !$url->query->ysclid) { $need2Line = $url->query->type == "documentation"; $head = $url->query->type == "documentation" ? "Скачать документацию" : "Скачать программное обеспечение"; } // Debug::DumpDie($need2Line);
$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) {
$this->location(); $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 common\components\Application($config); $application->run();
$_GET = [ 'item_id' => null, 'alias' => 'download', 'url' => unserialize('O:8:"stdClass":9:{s:6:"scheme";s:4:"http";s:4:"host";s:17:"www.energomera.ru";s:4:"path";s:20:"/ru/support/download";s:5:"query";O:8:"stdClass":1:{s:4:"type";s:8:"software";}s:7:"url_arr";a:4:{i:0;s:0:"";i:1;s:2:"ru";i:2;s:7:"support";i:3;s:8:"download";}s:8:"host_arr";a:3:{i:0;s:3:"www";i:1;s:10:"energomera";i:2;s:2:"ru";}s:4:"lang";N;s:3:"url";s:16:"support/download";s:5:"alias";a:2:{i:0;s:7:"support";i:1;s:8:"download";}}'), 'suf' => 'download', 'type' => 'software', ]; $_SESSION = [ '__flash' => [], 'site' => unserialize('O:8:"stdClass":16:{s:2:"id";i:2;s:4:"name";s:20:"Энергомера";s:11:"virtual_url";i:1;s:12:"virtual_file";i:1;s:10:"multi_lang";i:1;s:14:"menu_id_header";i:2;s:14:"menu_id_footer";i:6;s:14:"soc_net_footer";i:1;s:6:"search";i:1;s:6:"banner";i:1;s:3:"cfg";N;s:9:"status_id";i:1;s:5:"order";i:254;s:7:"adminka";N;s:10:"cache_time";N;s:5:"domen";O:8:"stdClass":9:{s:2:"id";i:13;s:7:"site_id";i:2;s:4:"host";s:17:"www.energomera.ru";s:8:"protocol";s:4:"http";s:16:"google_analytics";s:13:"UA-16839660-1";s:14:"yandex_metrika";s:14:"43500;37778640";s:9:"status_id";i:1;s:5:"order";i:0;s:3:"url";s:24:"http://www.energomera.ru";}}'), 'lang' => 'ru', 'url' => unserialize('O:8:"stdClass":9:{s:6:"scheme";s:4:"http";s:4:"host";s:17:"www.energomera.ru";s:4:"path";s:20:"/ru/support/download";s:5:"query";O:8:"stdClass":1:{s:4:"type";s:8:"software";}s:7:"url_arr";a:4:{i:0;s:0:"";i:1;s:2:"ru";i:2;s:7:"support";i:3;s:8:"download";}s:8:"host_arr";a:3:{i:0;s:3:"www";i:1;s:10:"energomera";i:2;s:2:"ru";}s:4:"lang";N;s:3:"url";s:16:"support/download";s:5:"alias";a:2:{i:0;s:7:"support";i:1;s:8:"download";}}'), 'location' => [ 'region' => [ 'id' => 26, 'name' => '26 Ставропольский край', 'name_to_title' => '', 'city' => 'в Ставрополе', 'kladr' => 'Ставропольский', 'socr' => 'край', 'latitude' => '45.033333', 'longitude' => '41.966667', 'zoom' => 8, 'status_id' => 1, 'sx_id' => 487839, 'sx_name' => '', 'count' => 10177949, ], 'countries' => [ 'id' => 1, 'country' => 'Россия', 'code' => 'RUB', 'currency' => 'Российский рубль', 'latitude' => '60', 'longitude' => '100', 'zoom' => 0, 'status_id' => 1, 'order' => 255, 'sx_id' => 185, 'sx_name' => '', 'count' => 1497, ], 'placeStr' => 'Ставропольский край', 'autoFind' => true, ], ];