Extra Light PHP Framework
Controllers
This class is loaded automatically by the system
Content
Configuration
In application/config/config.php set the default controller
$config['default_controller'] = 'main'; // only the name (main), not main.php
don't forget to set up the routes in routes.php
Create a controller
<?php if (!defined('LIB_DIR')) exit('Access Forbidden');
class Main extends Controller
{
function Main()
{
parent::__construct();
}
function index()
{
echo 'index action';
}
function foo()
{
echo 'foo action';
}
}
?>