프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$locations | |||
$registry | |||
$routes |
메소드 | 설명 | |
---|---|---|
autoload ( $class ) | Library base class autoload * | |
file_path ( $module = null, $folder = null, $file = null ) : string | Find the path to a module's file. | |
files ( $module_name = NULL, $module_folder = NULL ) : array | Return an associative array of files within one or more modules. | |
find ( $file, $module, $base ) | Find a file Scans for files located within modules directories. | |
folders ( ) : array | Returns an array of the folders in which modules may be stored. | |
list_modules ( ) : array | Returns a list of all modules in the system. | |
load ( $module ) | Load a module controller * | |
load_file ( $file, $path, $type = 'other', $result = TRUE ) | Load a module file * | |
parse_routes ( $module, $uri ) | Parse module routes * | |
path ( $module = null, $folder = null ) : string | Return the path to the module and its specified folder. | |
run ( $module ) | Run a module controller method Output from module is buffered and returned. |
public static file_path ( $module = null, $folder = null, $file = null ) : string | ||
$module | string The name of the module to find. | |
$folder | string The folder within the module to search for the file (ie. controllers). | |
$file | string The name of the file to search for. | |
리턴 | string | The full path to the file. |
public static files ( $module_name = NULL, $module_folder = NULL ) : array | ||
$module_name | string If not null, will return only files from that module. | |
$module_folder | string If not null, will return only files within that sub-folder of each module (ie 'views'). | |
리턴 | array | An associative array, like:
array(
'module_name' => array(
'folder' => array('file1', 'file2')
)
) |
public static find ( $file, $module, $base ) |
public static list_modules ( ) : array | ||
리턴 | array | A list of all modules in the system. |
public static load_file ( $file, $path, $type = 'other', $result = TRUE ) |
public static run ( $module ) |