\Vegas\Mvc\ControllerControllerAbstract

Class ControllerAbstract

Summary

Methods
Properties
Constants
initialize()
No public properties found
No constants found
jsonResponse()
_()
throw403()
throw404()
throw500()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

initialize()

initialize()

Controller initialization block

jsonResponse()

jsonResponse( $data) : \Phalcon\Http\ResponseInterface

Renders JSON response Disables view

Parameters

$data

Returns

\Phalcon\Http\ResponseInterface

_()

_(mixed $text) : string

_ Alias for $this->i18n->_().

Returns translated text.

Parameters

mixed $text

Returns

string

throw403()

throw403(string $message)

Throws exception with code 403

Parameters

string $message

Throws

\Vegas\Exception

throw404()

throw404(string $message)

Throws exception with code 404

Parameters

string $message

Throws

\Vegas\Exception

throw500()

throw500(string $message)

Throws exception with code 500

Parameters

string $message

Throws

\Vegas\Exception