} /**院校的专业详情 * by fawn */ public function actionMajormsg() { $school = new Schools(); $id = Yii::$app->request->get('id');//分类ID $data = json_decode(file_get_contents("http://schools.viplgw.cn/major/" . $id . ".html?data-type='json'"), true); $schoolData = json_decode($school->CurlRequest('school', ['catid' => 155, 'pageNumber' => 1, 'pageSize' => 6]), TRUE); // echo '<pre>';var_dump($data['school']);die; $this->title = $data['data']['name'] . ',院校库,美国留学院校分享,出国留学案例分享 申友留学专注名校留学申请'; $this->keywords = '留学中介,留学,留学中介机构,留学机构,启德留学,EIC启德教育,留学资讯,出国留学条件,出国留学流程,出国留学中介,读研条件,出国留学费用,出国留学网,留学网,申请出国留学,留学签证,留学看点,留学考试'; $this->description = '申友留学,专注商科与STEM留学咨询,提供留学申请一站式服务,是GMAT与托福 雅思培训的行业领跑者。申友专注美国、英国、加拿大、澳洲、香港等名校留学,留学咨询,出国留学,托福 雅思与GMAT培训,尽在申友。'; return $this->render('major', ['hot' => $data['hot'], 'school' => $data['school'], 'data' => $data['data'], 'schoolData' => $schoolData]); } /**学校排行的推荐老师
$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 = [ 'id' => '13957', ]; $_SERVER = [ 'REDIRECT_UNIQUE_ID' => 'ZgbkaLUshKxlhC4s1g@ntgAAABs', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.thinkwithu.com', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgbkaLUshKxlhC4s1g@ntgAAABs', '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' => '3.84.110.120', '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' => '55478', 'REDIRECT_URL' => '/schools/major/13957.html', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/schools/major/13957.html', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1711727720.6930001, 'REQUEST_TIME' => 1711727720, ]; $_SESSION = [ '__flash' => [], ];