I usually do urls like this:
/index.php/home/user
and set a baseUrl config of '/index.php' when I instantiate
PageControllerApp. Like this:
$app = new PageControllerApp(array(
'pagesDir' => APPROOT.'/pages',
'baseUrl' => '/index.php',
'urlHandler' => new SimpleUrlHandler(array(
'baseUrl' => '/index.php'
)),
'viewRenderer' => new PTagViewRenderer(array(
'templateDir' => APPROOT.'/pages',
'compileDir' => APPROOT.'/compile',
'tagsDir' => APPROOT.'/tags'
))
));
If I want to have urls that look like:
/home/user
i use this rule:
RewriteRule ^/([^.]+)$ /index.php/ [NC,L]
which will rewrite any request that doesn't have a dot in it. Either
setup should allow you to include css and js files directly without
triggering the framework code.
Alvaro