3 Configure
::load('setup');
4 Configure
::load('settings');
5 Configure
::load('site');
9 $argc = func_num_args();
10 $argv = func_get_args();
12 if ($argc == 1 && is_array($argv[0])) {
19 if (strpos($argv[0], '/')!== false) {
20 return url(explode('/', ltrim($argv[0], '/')));
22 return array('action' => $argv[0]);
24 return array('controller' => $argv[0], 'action' => $argv[1]);
26 return array('controller' => $argv[0], 'action' => $argv[1], $argv[2]);
28 $controller = array_shift($argv);
29 $action = array_shift($argv);
30 return array('controller' => $controller, 'action' => $action, $argv);