\Application

Base class of the application.

Summary

Methods
Properties
Constants
__construct()
load_route()
load_routes()
load_routes_from_config()
handle_exception()
run()
__call()
redirect_to()
No public properties found
No constants found
call_route()
$Router
N/A
No private methods found
No private properties found
N/A

Properties

$Router

$Router : 

Router object.

Type

Methods

__construct()

__construct() 

Constructor.

load_route()

load_route(  $Route) 

Method loads single route.

Parameters

$Route

load_routes()

load_routes(  $Routes) 

Method loads routes.

Parameters

$Routes

load_routes_from_config()

load_routes_from_config(  $Path = './conf/routes.php') 

Method loads routes from config file.

Parameters

$Path

handle_exception()

handle_exception(\Exception  $e) 

Method processes exception.

Parameters

\Exception $e

run()

run() 

Running application.

__call()

__call(  $Method,   $Args) 

Allowing to call methods added on the fly.

Parameters

$Method
$Args

redirect_to()

redirect_to(  $URL) 

Method redirects user to another page.

Parameters

$URL

call_route()

call_route() 

Method calls route and returns it's content.