TwistPHP Documentation


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

userSetup an initial (super admin, level 0) user account, this is only used at the moment if you have a DB setup, otherwise this step is skipped.

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

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

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