Routing in Php and decorator pattern
- by Joey Salac Hipolito
I do not know if I am using the term 'routing' correctly, but here is the situation:
I created an .htaccess file to 'process' (dunno if my term is right) the url of my application, like this :
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
Now I have this : …