TwistPHP Documentation

Settings

File path: dist/packages/manager/Controllers/Settings.controller.php
Namespace: Packages\manager\Controllers
Extends: Base

Type: Controller

Settings — The route controller for the framework manager, generates the pages of the manager tool.

Example Usage

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

//Register a dynamic route that will direct all function requests to the controller
Twist::Route() -> controller('/settings%','\Packages\manager\Controllers\Settings');

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

//Or you can register a route to only direct the current request to a particular controller method
Twist::Route() -> get('/settings/performance',array('\Packages\manager\Controllers\Settings','performance'));

Method List

Method Access Returns
_indexpublicvoid
_POSTindexpublicvoid
performancepublicvoid
POSTperformancepublicvoid
redirectspublicvoid
POSTredirectspublicvoid
cachepublicvoid
parseCacheprotectedvoid
apikeyspublicvoid
POSTapikeyspublicvoid