Autoloader Functions

Obullo has a autoload.php functionality that is located in your application/config folder.

When your application start to work, if would you like to load automatically some obullo or application ( models, helpers, languages, views ) files for whole framework , you should define filenames to $autoload variable.

Autoloading Helpers

Autoloading files loading path styles same as loader class.

$autoload['helper']  = array('ob/view' => '', 'ob/html' => '', '../mymodule/myhelper' => '', 'app/myhelper' => '');

Autoloading Libraries

Autoloading files loading path styles same as loader class.

$autoload['lib'] = array('ob/calendar' => '', 'app/my_lib' => '', '../module/mylib' => '');

You can close to class instantiate using FALSE param or you can provide construct params using an array()

$autoload['lib'] = array('app/auth' => array(FALSE), 'app/my_library' => array( array($construct_params) ) );

Autoloading Lang Files

Same as helper files.

Autoloading Config Files

Same as helper files.

Autoloading Models

Same as library files.

Module Autoload.php

You can create an autoload.php in your module/config/ folder. Obullo will merge module autoload.php and application autoload.php variables.

Autorun Functions

Obullo has a autorun.php functionality that is located in your application/config folder.

When your application start to work, if would you like to run automatically some autoloaded helper functions for whole framework , you should define function names and arguments to $autorun variable.

$autorun['function']['sess_start']   = array('');  This configuration run the Obullo sess_start(); function.

You can use arguments

$autorun['function']['view_set_folder']   = array('view', 'myviewfolder');

Above the configuration run this function view_set_folder('view', 'myviewfolder'); if view helper loaded.

Module Autorun.php

You can create an autorun.php in your module/config/ folder. Obullo will merge module autorun.php and application autorun.php variables.

Module Config.php

You can create an config.php in your module/config/ folder which has contains $config variables. Obullo will merge module config.php and application config.php variables.

Module Routes.php

You can create an routes.php in your module/config/ folder which has contains $routes variables. Obullo will merge module routes.php and application routes.php variables.

Module Constants.php

You can create an constants.php in your module/config/ folder. Obullo will include module constants.php variables to application.

SubModule Autoloaders

You can create multi applications in modules directory and sub module autoloaders works like modules they have a /sub.module/config folder.