mako-framework/mako-framework — pull request #40 by geekboy88 (2012-12-11 18:48:03+00:00)
Title: Dev

Hi, Frederic! How're you doing?)

With the url ```http://some.com/index.php.``` (dot after .php) I caught the exception ```-1``` with the message ```Class \app\controllers\.\index does not exist``` in the location ```C:\welldonepro\libraries\mako\Request.php (line 374)``` (OS Windows)

I decided to ignore ```/index.php``` with a simple (may be ugly) hack at all. I don't know why, but an ability to call completely all routes with ```/index.php``` makes me twitch) And at the same time I solved the ```index.php.``` problem.

I think to get default routes (```http://some.com/controller/action```) always is an incomplete idea. In custom routes I can set ```'integer/(one|two)' => 'integer/get/$1'``` and I don't need to validate an argument in an action, but if I get an action by ```http://some.com/integer/get/three``` I'll need to validate it.