isForbiddenController example


    public function isDispatchable(Enlight_Controller_Request_Request $request)
    {
        $className = $this->getControllerClass($request);
        if (!$className) {
            return false;
        }

        if ($this->isForbiddenController($className)) {
            return false;
        }

        if (class_exists($className, false)) {
            return true;
        }

        $path = $this->getControllerPath($request);

        if ($path === null) {
            return false;
        }
Home | Imprint | This part of the site doesn't use cookies.