Class Socialveo\Frontend\controllers\IndexController

InheritanceSocialveo\Frontend\controllers\IndexController » Socialveo\Frontend\controllers\FrontendController » Phalcon\Mvc\Controller
Uses TraitsSocialveo\Core\Translatable

Class IndexController

Public Methods

Hide inherited methods

MethodDescriptionDefined By
_t() Gets translations Socialveo\Core\Translatable
afterExecuteRoute() Socialveo\Frontend\controllers\FrontendController
beforeExecuteRoute() Before execute route Socialveo\Frontend\controllers\FrontendController
embedAction() Parses embed urls Socialveo\Frontend\controllers\IndexController
fire() Fire custom event Socialveo\Frontend\controllers\FrontendController
formAction() Render form action Socialveo\Frontend\controllers\IndexController
getEmbed() Embed getter method, if embed property is not set, fetches embed from request URL Socialveo\Frontend\controllers\FrontendController
getIsRequestPjax() Checks whether is requested via jquery.pjax Socialveo\Frontend\controllers\FrontendController
getLanguage() Gets language code Socialveo\Frontend\controllers\FrontendController
getParams() Gets $_REQUEST superglobal Socialveo\Frontend\controllers\FrontendController
getRequired() Get required param / params Socialveo\Frontend\controllers\FrontendController
getRequiredQuery() Get required param / params from $_GET Socialveo\Frontend\controllers\FrontendController
indexAction() Used by default, news feed when actual action not found router shows index page, so when path not empty we show not found page Socialveo\Frontend\controllers\IndexController
initialize() Initialize controller Socialveo\Frontend\controllers\FrontendController
notFound() Not found action Socialveo\Frontend\controllers\FrontendController
notFoundAction() Not found action Socialveo\Frontend\controllers\IndexController
partialRender() Renders partial view without layout Socialveo\Frontend\controllers\FrontendController
pick() Pick view Socialveo\Frontend\controllers\FrontendController
posts() Find posts and attach to page Socialveo\Frontend\controllers\FrontendController
setDebugHeaders() Sets headers for debug XHR Socialveo\Frontend\controllers\FrontendController
setHttpCode() Set response Http code Socialveo\Frontend\controllers\FrontendController
t() Gets translations Socialveo\Core\Translatable

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
checkAccess() Checks during the init of controller whether user is a guest. Socialveo\Frontend\controllers\FrontendController
checkIsAjax() Checks whether request is AJAX, redirect if false Usage in action: if (!$this->checkIsAjax()) { return false; } Socialveo\Frontend\controllers\FrontendController
getSocketData() Returns socket events Socialveo\Frontend\controllers\FrontendController
getTranslation() Gets translations Socialveo\Frontend\controllers\FrontendController
initAssets() Initialize assets Socialveo\Frontend\controllers\FrontendController
initViewVars() Sets view vars. Socialveo\Frontend\controllers\FrontendController
redirect() Redirect to url Socialveo\Frontend\controllers\FrontendController
reload() Reload the page Socialveo\Frontend\controllers\FrontendController
renderDefault() Render default page Socialveo\Frontend\controllers\FrontendController
respondWithArray() Returns an error response with an array Socialveo\Frontend\controllers\FrontendController
respondWithItem() Returns a response with a single item Socialveo\Frontend\controllers\FrontendController
respondWithStatus() Returns a response with status and message Socialveo\Frontend\controllers\FrontendController
responseError() Respond with error Socialveo\Frontend\controllers\FrontendController
responseJson() Response json Socialveo\Frontend\controllers\FrontendController
responseSuccess() Respond with success Socialveo\Frontend\controllers\FrontendController

Method Details

embedAction() public method

Parses embed urls

public Phalcon\Http\Response embedAction ( )
throws Exception
formAction() public method

Render form action

public array formAction ( $name )
$name string

Form name

throws Exception
indexAction() public method

Used by default, news feed when actual action not found router shows index page, so when path not empty we show not found page

public void indexAction ( )
notFoundAction() public method

Not found action

public void notFoundAction ( )