yiiext / yii2-yii-bridge

Yii bridge between v1.1.x and v2.0
23 stars 9 forks source link

when i try to access controller in yii2 this error generated #13

Closed hooman-mirghasemi closed 4 years ago

hooman-mirghasemi commented 9 years ago

CHttpException Unable to resolve the request "{route}".

1. in D:\wamp\www\salamatyar_v2\vendor\yiisoft\yii\framework\web\CWebApplication.php at line 286
277278279280281282283284285286287288289290291292293294295

        {
            list($controller,$actionID)=$ca;
            $oldController=$this->_controller;
            $this->_controller=$controller;
            $controller->init();
            $controller->run($actionID);
            $this->_controller=$oldController;
        }
        else
            throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
                array('{route}'=>$route===''?$this->defaultController:$route)));
    }

    /**
     * Creates a controller instance based on a route.
     * The route should contain the controller ID and the action ID.
     * It may also contain additional GET variables. All these must be concatenated together with slashes.
     *
     * This method will attempt to create a controller in the following order:

2. in D:\wamp\www\salamatyar_v2\vendor\yiisoft\yii\framework\web\CWebApplication.php at line 141 – CWebApplication::runController('tester')
135136137138139140141142143144145146147

            $route=$this->catchAllRequest[0];
            foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
                $_GET[$name]=$value;
        }
        else
            $route=$this->getUrlManager()->parseUrl($this->getRequest());
        $this->runController($route);
    }

    /**
     * Registers the core application components.
     * This method overrides the parent implementation by registering additional core components.
     * @see setComponents

3. in D:\wamp\www\salamatyar_v2\vendor\yiisoft\yii\framework\base\CApplication.php at line 184 – CWebApplication::processRequest()
slavcodev commented 4 years ago

Closing the issue, the library is no longer maintained.