( ! ) Notice: Undefined index: job in /var/www/jm2/jobmaker/config/routes.php on line 50 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.2003 | 358744 | {main}( ) | .../index.php:0 |
2 | 0.2022 | 2825512 | require( '/var/www/jm2/jobmaker/config/web.php' ) | .../index.php:12 |
3 | 0.2022 | 2829584 | require( '/var/www/jm2/jobmaker/config/routes.php' ) | .../web.php:28 |
( ! ) Notice: Undefined index: areas in /var/www/jm2/jobmaker/config/routes.php on line 51 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.2003 | 358744 | {main}( ) | .../index.php:0 |
2 | 0.2022 | 2825512 | require( '/var/www/jm2/jobmaker/config/web.php' ) | .../index.php:12 |
3 | 0.2022 | 2829584 | require( '/var/www/jm2/jobmaker/config/routes.php' ) | .../web.php:28 |
( ! ) Notice: Undefined index: conditions in /var/www/jm2/jobmaker/config/routes.php on line 52 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.2003 | 358744 | {main}( ) | .../index.php:0 |
2 | 0.2022 | 2825512 | require( '/var/www/jm2/jobmaker/config/web.php' ) | .../index.php:12 |
3 | 0.2022 | 2829584 | require( '/var/www/jm2/jobmaker/config/routes.php' ) | .../web.php:28 |
// フリーワード検索がURLに入っていた場合のみ、パラメータに入れる if(count($basePaths) > 1 && !JmUtils::isEmpty($basePaths[1])){ $params['keyword'] = $basePaths[1]; } foreach ($paths as $k => $path) { if(!JmUtils::isEmpty($path)){ // 1階層目にエリア if ($k == 0 && in_array($path, array_keys($this->areas))) { $params['areaId'] = $this->areas[$path]; continue; } if ($path == $this->serachResultAction) { // 結果Actionが指定されたら結果ページへそのまま continue; }
*/ public function parseRequest($request) { if ($this->enablePrettyUrl) { /* @var $rule UrlRule */ foreach ($this->rules as $rule) { $result = $rule->parseRequest($this, $request); if (YII_DEBUG) { Yii::trace([ 'rule' => method_exists($rule, '__toString') ? $rule->__toString() : get_class($rule), 'match' => $result !== false, 'parent' => null, ], __METHOD__);
* Resolves the current request into a route and the associated parameters. * @return array the first element is the route, and the second is the associated parameters. * @throws NotFoundHttpException if the request cannot be resolved. */ public function resolve() { $result = Yii::$app->getUrlManager()->parseRequest($this); if ($result !== false) { list ($route, $params) = $result; if ($this->_queryParams === null) { $_GET = $params + $_GET; // preserve numeric keys } else { $this->_queryParams = $params + $this->_queryParams;
* @throws NotFoundHttpException if the requested route is invalid */ public function handleRequest($request) { if (empty($this->catchAll)) { try { list ($route, $params) = $request->resolve(); } catch (UrlNormalizerRedirectException $e) { $url = $e->url; if (is_array($url)) { if (isset($url[0])) { // ensure the route is absolute $url[0] = '/' . ltrim($url[0], '/');
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'); Yii::setAlias('@runtime', __DIR__. '/../runtime'); $config = require(__DIR__ . '/../config/web.php'); (new yii\web\Application($config))->run();