Controller Instance |
|
|
|
Gets the parsed data from the request body. |
|
|
Gets the HTTP host address |
|
|
Gets/Sets the controller language for the localization |
|
|
Gets a dynamic params from URL |
|
|
Gets the parsed data from the URL address query |
|
|
Gets the HTTP request |
|
|
Gets the HTTP response |
|
|
Gets a relative lower-case URL |
|
|
Gets the user instance if exists |
|
controller.callback([view_name])
|
Returns data as JSON or view |
|
controller.file(filename, [callback])
|
Sends the file into response |
returns controller instance
|
controller.filefs(name, id,[callback])
|
Sends a stored file in FileStorage |
returns controller instance
|
controller.hostname([path])
|
Gets the hostname |
|
controller.layout(name)
|
Sets a layout before the current view |
returns controller instance
|
controller.invalid(error)
|
Creates an ErrorBuilder instance |
|
controller.plain(text, [headers])
|
Sends the plain text |
returns controller instance
|
controller.proxy(opt/url)
|
Creates a proxy for the current request |
|
controller.redirect(url, [permament])
|
Creates a redirection |
returns controller instance
|
controller.success([success], [value])
|
Alias for controller.json(SUCCESS(true))
|
returns controller instance
|
controller.throw404([problem])
|
Sends a 404 error - Not found
into response |
returns controller instance
|
controller.view(name/url, [model])
|
Sends the view |
returns controller instance
or string
|