<div class="hot-school" style="overflow: hidden"> <div style="display: flex;align-items: center;margin: 10px 0;"> <span style="display: inline-block;width: 2px;height: 15px;background-color: #4a2a86;margin: 0 15px;"></span> <span>热门学校</span> <a href="/schools.html">MORE</a> </div> <div class="hout-s-con"> <ul> <?php foreach ($school as $key => $v) { if ($key < 6) { ?> <li> <div class="hout-s-left"> <a href="/schools-detail/<?php echo $v['id']?>.html"><img src="https://schools.viplgw.cn/<?php echo $v['image'] ?>" alt="学校图标"/></a> <div class="hot-box"></div> <!-- <span>700人查看</span>-->
$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.
* These parameters will not be available in the layout. * @return string the rendering result. * @throws InvalidParamException 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
$data = json_decode(Method::post("https://liuxue.thinkwithu.com/cn/api/question-index",['tag'=>$tag,'uid'=>$uid]), true); $teacher = Content::getContent(['fields' => 'speaker,job', 'category' => "140", 'pageSize' => 6]); // echo '<pre>';var_dump($data);die; $this->title = '留学问答|留学中介|中介顾问_专业全面留学知识问答平台_申友网'; $this->keywords = '留学问答、美国留学、英国留学、留学申请、背景提升、学校专业、语言备考、文书写作、留学生活、申友网,留学中介、美国留学中介、英国留学中介、中介推荐、留学中介推推荐、值得信赖的留学中介、中介顾问、中介筛选、中介介绍、中介对比'; $this->description = '申友网留学问答平台,云集申友网专业负责顾问,在这里可以提出包括留学申请、背景提升、学校专业、语言备考、文书写作、留学生活等多方面的任何疑问,精确找到你想要的答案。来申友网,找好顾问!来申友网,找好顾问,帮你筛选优质留学中介!'; return $this->render('question-new', ['school' => $data['school'], 'tags' => $data['tags'], 'whole' => $data['whole'], 'newest' => $data['newest'], 'recommend' => $data['recommend'], 'teacher' => $teacher, 'myAnswer' => $data['myAnswer'], 'topicAll' => $data['topicAll'], 'topicHot' => $data['topicHot'], 'topicMy' => $data['topicMy']]); } //问答详情页 测试 public function actionQuestionDetail() {
$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();
// default: // break; // } //} error_reporting(E_ALL); (new yii\web\Application($config))->run();
$_GET = [ 'tag' => '8', ]; $_SERVER = [ 'REDIRECT_UNIQUE_ID' => 'Zgak1dY@Jdj7Jjz@uWFS-AAAADo', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.thinkwithu.com', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'Zgak1dY@Jdj7Jjz@uWFS-AAAADo', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.thinkwithu.com', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.thinkwithu.com/question-topic/8.html', 'HTTP_HOST' => 'www.thinkwithu.com', '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' => 'www.thinkwithu.com', 'SERVER_ADDR' => '172.18.175.120', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '3.235.145.95', 'DOCUMENT_ROOT' => '/var/www/html/thinkwithu/web', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/thinkwithu/web', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/thinkwithu/web/index.php', 'REMOTE_PORT' => '49528', 'REDIRECT_URL' => '/question-topic/8.html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/question-topic/8.html', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1711711445.187, 'REQUEST_TIME' => 1711711445, ]; $_SESSION = [ '__flash' => [], ];