npacker / nFramework

A simple MVC framework in PHP.
1 stars 0 forks source link

Refactor HttpRequest to provide url paramers and other data #10

Closed npacker closed 9 years ago

npacker commented 10 years ago

The HttpRequest should not return the controller, action, etc. It should only parse the incoming URL and any query, GET or POST data. That logic will be moved to the Path controller.

HttpRequest should populate a member variable with an array of URL parameters. This will be accessible with the params(num=null) method, which will return all parameters or the one specified. If the argument passed is a number, it will return that index of the array. If it is a string, it will search for it in the URL and return a boolean.