<div class="detailTop"> <img src="/cn/images/quesAnswer_topH02New.jpg" alt="头部图片"/> </div> <div class="detailCon"> <div class="detail-top"> <div class="detailLeft"> <div class="l-left"> <img src="<?php echo $data[0]['image']?>" alt="老师照片"> </div> <div class="l-right"><?php echo $data[0]['name']?> <?php echo $data[0]['job']?></div> <div style="clear: both"></div> </div> <div class="detailRight"> <a rel="nofollow" href="http://p.qiao.baidu.com/cps/chat?siteId=16998543&userId=33849315&siteToken=22f1b8b21379dbd1382b1400debe4d3c" target="_blank"> <img src="/cn/images/teacherD_messIcon.png" alt="短信图标"/> <span>和老师聊聊</span><b>┘</b> </a>
$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
public function actionCases(){ $id = Yii::$app->request->get('id',''); if(!$id){ $this->redirect('/surprise.html'); }else{ $data = Content::getContent(['fields' => "job,description",'where' => "c.id = $id"]); return $this->render('cases',['data' => $data]); } $this->title = '申友留学,申友留学教育专家,口碑推荐出国留学专家顾问团队,申友留学官网'; $this->keywords = '申友留学专家,申友留学顾问,申友留学教育专家,留学专家顾问,美国留学顾问,英国留学顾问,香港留学顾问,加拿大留学顾问,新加坡留学顾问,法国留学顾问,澳洲留学顾问,高级留学顾问,高级留学规划师,文书服务总监,申友留学官网'; $this->description = '申友留学集结海内外名师团队,拥有多名资深的申友留学专家、留学顾问、留学教育专家,为芊芊学子提供美国留学、英国留学、加拿大留学、澳洲留学、新西兰留学、亚洲留学、欧洲留学等国家地区最为准确的留学资讯和意见!想了解更多申友留学专家信息就上申友留学官网。'; }
$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 = [ 'str' => 'Kevin%20Ni', 'id' => '134', ]; $_SERVER = [ 'REDIRECT_UNIQUE_ID' => 'ZgaHX2k09Z9J6s4NlPrg9wAAAFk', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.thinkwithu.com', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgaHX2k09Z9J6s4NlPrg9wAAAFk', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.thinkwithu.com', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', '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' => '35.172.223.130', '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' => '35802', 'REDIRECT_URL' => '/teachers/Kevin%20Ni/134.html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/teachers/Kevin%2520Ni/134.html', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1711703903.918, 'REQUEST_TIME' => 1711703903, ]; $_SESSION = [ '__flash' => [], ];