\Hazaar
Controller
Abstract
Abstract controller class
Summary
Methods Properties Constants
url
No constants
Properties
$application
$application
$name
$name
$request
$request
$statusCode
$statusCode
Methods
__construct()
__construct($name, $application)

Parameters

$name

No description

$application

No description

__shutdown()
__shutdown()
__tostring()
__tostring()
active()
active($controller = null, $action = null)

Parameters

$controller

No description

$action

No description

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

Parameters

$action

No description

$timeout

No description

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

Parameters

$location

No description

$args

No description

$save_url

No description

setApplication()
setApplication($application)

Parameters

$application

No description

setRequest()
setRequest($request)

Parameters

$request

No description

setStatus()
setStatus($code)

Parameters

$code

No description

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