getClassPath example


        if (!\is_string($class)) {
            throw new Enlight_Exception('Class name must be a string');
        }
        $class = ltrim($class, self::DEFAULT_SEPARATOR);
        if (!$this->isLoaded($class)) {
            if ($path !== null) {
                $this->loadFile($path);

                return true;
            }
            $path = $this->getClassPath($class);
            if ($path === null) {
                return false;
            }
            $this->loadFile($path, false);
        }

        return true;
    }

    /** * Loads file method. If the path is not readable, the output buffering can't be started or the * path didn't pass the security check, the function throws an exception. * Otherwise the path is included and the result is returned. * * @param string $path * @param bool $check * * @throws Enlight_Exception */
Home | Imprint | This part of the site doesn't use cookies.