For all those that have the same problem as me here is a dirty workaround
In the file /public/index.php find the line
list($pfx, $controllerName,$actionName) = preg_split('/[\/\\\]/',$uri);
and replace with:
//list($pfx, $controllerName,$actionName) = preg_split('/[\/\\\]/',$uri);
$uri_e = preg_split('/[\/\\\]/', $uri);
$nrs = count($uri_e);
$nrs1 = ($nrs - 2);
/*
* Uncomment the next 4 lines if you are not getting the right result
* then adjust the number in the line above
*/
//echo '<pre>';
//echo 'The number of the array identifier :' . $nrs1 . '<br />';
//echo 'The value of the array node: ' . $uri_e[$nrs1] . '<br />';
//print_r(preg_split('/[\/\\\]/', $uri));
/*
* This is where the "magic" happens
*/
if ($uri_e[$nrs1] === 'index' && $uri_e[$nrs1 + 1] === '' || $uri_e[$nrs1] === 'public' && $uri_e[$nrs1 + 1] === '') {
$controllerName = 'index';
$actionName = '';
} elseif ($uri_e[$nrs1] != '' && $uri_e[$nrs1 + 1] != '') {
$controllerName = $uri_e[$nrs1];
$actionName = $uri_e[$nrs1 + 1];
} elseif($uri_e[$nrs1] === 'test' && $uri_e[$nrs1 + 1] === '' ){
$controllerName = 'test';
$actionName = '';
}else {
echo 'Controller can not be found';
}
/*
* Which controller is passed ?
* Uncomment the next line to find out
*/
//echo '<br />Controller Name: ' . $controllerName . '<br />';
Thats all, this way you can at least follow the rest of the tuts
Hope it helps
Regards
mantis