\Hazaar\Controller
Script
Basic controller class

This controller does basic stuff

Summary
Methods Properties Constants
url
No constants
Properties
$filename
$filename
$source
$source
Inherited
$request
$request
Inherited
$statusCode
$statusCode
Methods
__initialize()
__initialize($request)

Parameters

$request

No description

__run()
__run()
Inherited
__tostring()
__tostring()
Inherited
active()
active($controller = null, $action = null)

Parameters

$controller

No description

$action

No description

Inherited
cacheAction()
cacheAction($action, $timeout = 60)

Parameters

$action

No description

$timeout

No description

Inherited
getName()
getName()
Inherited
redirect()
redirect($location, $args = Array ( ) , $save_url = true)

Parameters

$location

No description

$args

No description

$save_url

No description

Inherited
setApplication()
setApplication($application)

Parameters

$application

No description

Inherited
setRequest()
setRequest($request)

Parameters

$request

No description

Inherited
setStatus()
setStatus($code)

Parameters

$code

No description

Inherited
url()
url()
Generate a URL relative to the controller

This is the controller relative method for generating URLs in your application. URLs generated from here are relative to the controller. For URLs that are relative to the current application see Application::url()

Parameters are dynamic and depend on what you are trying to generate.

For examples see: \ref generating_urls