\Hazaar\File
Controller
Extends
\Hazaar\Controller\Basic
Summary
Methods Properties Constants
No constants
Properties
$path$path
Inherited
$actionArgs$actionArgs
Inherited
$cachedActions$cachedActions
Inherited
$request$request
Inherited
$statusCode$statusCode
Methods
__default()
__default($controller,$action) : \Hazaar\Controller\Response\File
Directly access a file stored in the Hazaar libs directory.

This is used for accessing files in the libs directory, such as internal built-in JavaScript, CSS, views and other files that are shipped as part of the core Hazaar MVC package.

Tags

 Throws Exception\InternalFileNotFound Throws \Exception

Parameters

 $controller No description$action string No description

Returns

 \Hazaar\Controller\Response\File
setPath()
setPath($path) Sets the support path to use to search for files. If this is not set, then the application configured support paths are used. Parameters $path mixed No description
Inherited
active()
active($controller = null,$action = null) : boolean
Test if a controller and action is active.

Parameters

 $controller mixed No description$action mixed No description

Returns

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

Parameters

 $action No description$timeout No description
Inherited
getAction()
getAction()
Inherited
getActionArgs()
getActionArgs()
Inherited
setRequest()
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