Extra Light PHP Framework

Loader

This class is loaded automatically by the system

Content

Load libraries

$this->load_library('foo'); $this->foo->method(); // or $bar = Loader::load_library('bar'); $bar->method();

Load helpers

Loader::helper('bar'); function_from_bar();

Load models

$news = Loader::load_model('news'); $news->get_all();

Load files

Loader::load_file('file');