/** * Retrieve include paths * * @return array */ public static function getPath() { if (!self::$paths) { self::$paths = array(); array_push(self::$paths, APPLICATION_PATH . DS . 'modules' . DS . 'core'); array_push(self::$paths, APPLICATION_PATH . DS . 'modules' . DS . 'ext'); set_include_path(get_include_path() . PATH_SEPARATOR . implode(PATH_SEPARATOR, self::$paths)); } return self::$paths; }