\Vigas\Application\ControllerAppController

Class AppController.

The application controller

Summary

Methods
Properties
Constants
__construct()
setMethodName()
executeController()
getView()
getLogin()
getSignup()
getLogOut()
getProfile()
getForgotPassword()
getResetPassword()
getAbout()
getManageUpdateInfo()
get404()
getResponse()
No public properties found
No constants found
No protected methods found
$navbar_method_name
$method_name
$response
$post_params
N/A
No private methods found
No private properties found
N/A

Properties

$navbar_method_name

$navbar_method_name : string

Type

string — Contains name of the AppController method used to get the navbar

$method_name

$method_name : string

Type

string — Contains name of the AppController method used to get the content

$response

$response : array

Type

array — Data to be send to the view

$post_params

$post_params : array

Type

array — Parameters sent via POST method

Methods

__construct()

__construct() 

Sets parameters for the model and methods name

setMethodName()

setMethodName(string  $action) : string

Sets the method name used by the controller

Parameters

string $action

The action url parameter sent via GET method

Returns

string —

The method name

executeController()

executeController() 

Executes AppController methods to get content

getView()

getView() 

Creates the view by calling the View method and the template

getLogin()

getLogin() 

Gets POST data and log the user

getSignup()

getSignup() 

Gets POST data and create an account

getLogOut()

getLogOut() 

Logout user

getProfile()

getProfile() 

Gets POST data and changes user's password

getForgotPassword()

getForgotPassword() 

Gets POST data to send reset password email or find user's email address

getResetPassword()

getResetPassword() 

Gets POST data, check if reset password token is still valid and reset user's password if so

getAbout()

getAbout() 

Gets POST data for the about view and manages the contact form

getManageUpdateInfo()

getManageUpdateInfo(array  $get_params) 

Manages the update info alert

Parameters

array $get_params

HTTP GET parameters

get404()

get404() 

Gets the gif to display in 404 error page

getResponse()

getResponse() : array

Returns

array —

Data to be send to the view