TwistPHP Documentation


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

devicemanagerManage all the connected devices registered under a users account, once the user is logged in they can view this page and see all the devices that have been used to connect to the account.
The user has the ability to forget a device (removes the device and associated session) effectively and remotely login the user out of the site on the requested device. Also the ability to
rename the device so that at a glance you know which device is which.

Return Values

void — No return information has been documented for this function.


/** --------- 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/devicemanager',array('\Twist\Core\Controllers\BaseUser','devicemanager'));