Documentation:Autoload
From TinyMVC
Autoloading Plugins
Instead of using $this->load->libarary() and $this->load->script() in your controllers, you can have them autoloaded. Then they are always available to every controller.
myapp/configs/autoload.php
/* auto-loaded libraries */ $config['libraries'] = array('mylib','myotherlib'); /* auto-loaded scripts */ $config['scripts'] = array('myhelpers','myscripts');
Just add your plugins to the autoload arrays.
If you want to alias an autoloaded plugin, use an array:
/* auto-loaded libraries */ $config['libraries'] = array( array('mylib','myalias'), array('myotherlib','otheralias') );
