I can't figure out how the Zend Framework controls routes. I am actually trying to create my own controller/route class, wrote the same code as Zend reccomends for .htaccess to rewrite to an index.php located in the root of the website:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
The line I don't understand is the last one. It doesn't have capturing groups and $ variables. In index.php I can't catch anything in $_GET, which is empty. The only way it would work would be:
RewriteRule ^(.*)$ index.php?uri=$1 [NC,L]
and then parse $_GET['uri'], which for me it would be in the form "controller/action/param1/param1value".
But it would be nice to get around this and not use the 'uri' variable. In a Zend project, this just works. Can someone explain me how Zend parses the URL with this kind of rewrite ?