The Router class determines which controller needs to be loaded, based on the request passed to it, and the routes defined.
getDirectory
Get directory path to the controllers being executed.
router::getDirectory();
getClass
Get controller name being executed.
router::getClass();
getAction
Get controller method being executed.
router::getAction();
redirect
Redirect client to URL.
router::uri('users/settings'); // no need to specify domain name
router::uri('http://www.google.com');
router::uri('users/billing', 'https'); // redirect to URL via "https" protocol
router::uri('users/settings', '', 302); // redirect using 302 code