TwistPHP Documentation

BaseUser

File path: dist/twist/Core/Controllers/BaseUser.controller.php
Namespace: Twist\Core\Controllers
Extends: Base

Type: Controller

BaseUser — An User base controller that can be used instead of Base when you require login, authentication and other user pages. This controller should be used as an extension to a route controller class.

Example Usage

<?php
/** --------- Option 1 --------- */

//Register a dynamic route that will direct all function requests to the controller
Twist::Route() -> controller('/baseuser%','\Twist\Core\Controllers\BaseUser');

/** --------- Option 2 --------- */

//Or you can register a route to only direct the current request to a particular controller method
Twist::Route() -> get('/baseuser/_logintools',array('\Twist\Core\Controllers\BaseUser','_loginTools'));

Method List

Method Access Returns
_baseCallspublicvoid
_entryPagepublicvoid
_loginToolsprotectedvoid
loginpublicvoid
authenticatepublicvoid
logoutpublicvoid
cookiespublicvoid
forgottenpasswordpublicvoid
POSTforgottenpasswordpublicvoid
changepasswordpublicvoid
POSTchangepasswordpublicvoid
verifyaccountpublicvoid
POSTverifyaccountpublicvoid
devicemanagerpublicvoid
POSTdevicemanagerpublicvoid
_addRegistrationFieldpublicvoid
registerpublicvoid
POSTregisterpublicvoid