<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title><?php echo $seo[0];?></title> <meta name="keywords" content="<?php echo $seo[1];?>"> <meta name="description" content="<?php echo $seo[2];?>"> <link rel="stylesheet" href="https://file.viplgw.cn/ui/public/bootstrap-4.5.0-dist/css/bootstrap.css"> <link href="https://file.viplgw.cn/ui/graduate/cn/css/new2.3/public.css?v=1.0.2.1" rel="stylesheet"> <link href="https://file.viplgw.cn/ui/graduate/cn/css/new2.3/public.css?v=1.0.2.1" rel="stylesheet"> <script src="https://file.viplgw.cn/ui/public/js/jquery-1.9.1.min.js"></script>
$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 InvalidParamException if the view cannot be resolved or the view file does not exist. * @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 of the view file. Please refer to [[render()]] * on how to specify this parameter.
* @param array $params the parameters (name-value pairs) that should be made available in the view. * @return string the rendering result. * @throws InvalidParamException if the view file does not exist. */ public function renderPartial($view, $params = []) { return $this->getView()->render($view, $params, $this); } /** * Renders a view file. * @param string $file the view file to be rendered. This can be either a file path or a path alias. * @param array $params the parameters (name-value pairs) that should be made available in the view.
$datas[0] = $detail; $detail = @Category::getMidName($datas)[0]; // $is_sign = Category::getMidNameInvert($contentId, explode('/',Yii::$app->request->url)[1]); // if ($is_sign == 0){ // $this->redirect(404); // } return $this->renderPartial('infoDetail', ['content'=>$detail,'hot' => $hot, 'commend' => $commend, 'comment' => $comment, 'cate' => $cate_data]); } /** * 院校资讯详情 * @Author: Ferre * @create: 2020/3/19 17:35
$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); } }
$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) . '".');
$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__ . '/../vendor/autoload.php'); require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php'); $config = require(__DIR__ . '/../config/web.php'); error_reporting(E_ALL); //(new yii\web\Application($config))->run(); (new yii\web\Application($config))->run();
$_GET = [ 'contentId' => '9615', ]; $_SERVER = [ 'REDIRECT_UNIQUE_ID' => 'Zgbkzo04Zh4ARa8nXx49TAAAAGo', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'Zgbkzo04Zh4ARa8nXx49TAAAAGo', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_HOST' => 'kaoyan.viplgw.cn', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40', 'SERVER_NAME' => 'kaoyan.viplgw.cn', 'SERVER_ADDR' => '172.18.175.120', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '3.80.164.96', 'DOCUMENT_ROOT' => '/var/www/html/graduate/web', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/graduate/web', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/graduate/web/index.php', 'REMOTE_PORT' => '47906', 'REDIRECT_QUERY_STRING' => 'contentId=9615', 'REDIRECT_URL' => '/cn/cet-news/content-detail-back', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'contentId=9615', 'REQUEST_URI' => '/cn/cet-news/content-detail-back?contentId=9615', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1711727822.7920001, 'REQUEST_TIME' => 1711727822, ]; $_SESSION = [ '__flash' => [], ];