• Как исправить ошибку при использовании HybridAuth в Codeigniter: Endpoint: Error while trying to init Hybrid_Auth: You cannot access this page direct?

    @Xom4ik Автор вопроса
    Ошибка возникает тут:
    protected function authInit() {
    		if (!$this->initDone) {
    			$this->initDone = true;
    
    			// Init Hybrid_Auth
    			try {
    				if (!class_exists("Hybrid_Storage", false)) {
    					require_once realpath(dirname(__FILE__)) . "/Storage.php";
    				}
    				if (!class_exists("Hybrid_Exception", false)) {
    					require_once realpath(dirname(__FILE__)) . "/Exception.php";
    				}
    				if (!class_exists("Hybrid_Logger", false)) {
    					require_once realpath(dirname(__FILE__)) . "/Logger.php";
    				}
    
    				$storage = new Hybrid_Storage();
    
    				// Check if Hybrid_Auth session already exist
    				if (!$storage->config("CONFIG")) {
    					throw new Hybrid_Exception("You cannot access this page directly.");
    				}
    
    				Hybrid_Auth::initialize($storage->config("CONFIG"));
    			} catch (Exception $e) {
    				Hybrid_Logger::error("Endpoint: Error while trying to init Hybrid_Auth: " . $e->getMessage());
    				throw new Hybrid_Exception( "Endpoint: Error while trying to init Hybrid_Auth: " . $e->getMessage(), $e->getCode(), $e );
    			}
    		}
    	}

    Не могу понять почему. Почему он не может инициализировать?