public function actionFront() { return $this->render('index'); } public function actionView($alias) { $page = Menu::find()->where(['alias'=>(string)$alias])->one(); $this->registerSeo($page->title_page_seo, $page->meta_description, $page->meta_keywords); $params = Json::decode($page->params); $params['page']=$page; return $this->run($page->controller.'/'.$page->action, $params); } } ?>
} public function actionView($alias) { $page = Menu::find()->where(['alias'=>(string)$alias])->one(); $this->registerSeo($page->title_page_seo, $page->meta_description, $page->meta_keywords); $params = Json::decode($page->params); $params['page']=$page; return $this->run($page->controller.'/'.$page->action, $params); }
$args = $this->controller->bindActionParams($this, $params); Yii::trace('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); Yii::$app->controller = $oldController; return $result; } else { $id = $this->getUniqueId(); throw new InvalidRouteException('Unable to resolve the request "' . ($id === '' ? $route : $id . '/' . $route) . '".');
$route = $this->catchAll[0]; $params = array_splice($this->catchAll, 1); } 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__ . '/frontend/config/main.php'), require(__DIR__ . '/frontend/config/main-local.php') ); $application = new yii\web\Application($config); $application->run(); ?>
$_GET = [ 'alias' => '" \\t "_blank', ]; $_SERVER = [ 'LSPHP_ENABLE_USER_INI' => 'on', 'PATH' => '/usr/local/bin:/usr/bin:/bin', 'TEMP' => '/tmp', 'TMP' => '/tmp', 'TMPDIR' => '/tmp', 'PWD' => '/', 'HTTP_ACCEPT' => '*/*', 'CONTENT_LENGTH' => '0', 'HTTP_HOST' => 'www.firstdirectaccounting.co.uk', 'HTTP_USER_AGENT' => 'claudebot', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgYfLPUR4VG5oIOEOTWD5gAAAB8', 'REDIRECT_REDIRECT_SCRIPT_URL' => '/" \\t "_blank', 'REDIRECT_REDIRECT_SCRIPT_URI' => 'http://www.firstdirectaccounting.co.uk/" \\t "_blank', 'REDIRECT_REDIRECT_USER_ID' => '9683338', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgYfLPUR4VG5oIOEOTWD5gAAAB8', 'REDIRECT_SCRIPT_URL' => '/" \\t "_blank', 'REDIRECT_SCRIPT_URI' => 'http://www.firstdirectaccounting.co.uk/" \\t "_blank', 'REDIRECT_USER_ID' => '9683338', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgYfLPUR4VG5oIOEOTWD5gAAAB8', 'SCRIPT_URL' => '/" \\t "_blank', 'SCRIPT_URI' => 'http://www.firstdirectaccounting.co.uk/" \\t "_blank', 'USER_ID' => '9683338', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.firstdirectaccounting.co.uk', 'SERVER_ADDR' => '92.205.169.9', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.206.160.129', 'DOCUMENT_ROOT' => '/home/sj7ekojo1znm/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/sj7ekojo1znm/public_html', 'SERVER_ADMIN' => 'webmaster@firstdirectaccounting.co.uk', 'SCRIPT_FILENAME' => '/home/sj7ekojo1znm/public_html/index.php', 'REMOTE_PORT' => '60142', 'REDIRECT_URL' => '/frontend/web/" \\t "_blank', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/%22%20%5Ct%20%22_blank', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1711677228.9399731, 'REQUEST_TIME' => 1711677228, ];