TwistPHP Documentation


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

htaccessHTaccess manager to all the editing of browser cache settings, rewrite rules and default host name redirects such as using www. or not and forcing https.

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('/manager%','\Twist\Core\Controllers\Manager');

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

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