Commit graph

16 commits

Author SHA1 Message Date
Woody Gilk 6afc1b78fb Cleaning up Request::_parse_accept code a little 2009-06-01 10:15:09 -05:00
Geert De Deckere b988f067c0 arsort() must always be given an array. I forgot $accepts could actually still be NULL at that point. 2009-05-30 20:30:32 +02:00
Geert De Deckere 7b396413c2 Prevent "Undefined offset: 1 SYSPATH/classes/request.php [333]" error notices caused by Accept headers like "text/html;q". Remember, Accept headers are user input. 2009-05-30 20:19:25 +02:00
Geert De Deckere cfbd4a8246 Order accept types by quality inside the parser 2009-05-30 19:04:42 +02:00
Woody Gilk f9d9b9f0f2 Updated Request::execute(): removed $capture parameter, load controllers and methods with Reflection, set status codes when a request results in an exception 2009-05-21 17:32:18 -05:00
Woody Gilk abb7b68764 Removed Request::get() and Request::post() as GET and POST data can no longer be faked 2009-05-21 17:30:05 -05:00
Woody Gilk 7e457043f6 Added accept_type(), accept_lang(), and accept_encoding() to Request, as well as _parse_accept() as a helper method to parse various accept headers 2009-05-06 16:20:50 -05:00
Woody Gilk be1fe04e4d Modified Request to be much more strict and static. Each request now consists of only a URI and all other request parameters are statically shared between requests. Implementing a full HTTP stack in PHP it out of the scope of Kohana. 2009-05-01 16:45:17 -05:00
Woody Gilk 75e43232d6 Added uri() and url() methods to Request 2009-04-20 22:24:52 -05:00
Woody Gilk 4a4d94263a Updated Request to follow the changes to Route in a0b95e2 2009-04-20 22:24:05 -05:00
Woody Gilk 82a1721632 Changed Request to take a URI and an array of parameters (get, post, method, etc) as a more flexible format; updated CLI request handling to use the new cli helper 2009-04-09 17:01:40 -05:00
Woody Gilk 7ff9104b4a Updated Request and Controller to be REST compatible 2009-03-23 10:40:14 -05:00
Woody Gilk c711143fe2 Renamed Route::set() to Route::add() for better consistency, added Route::directory() to set the controller directory prefix 2009-03-20 17:58:10 -04:00
Woody Gilk 4aab14fade Added missing file EOLs on several files 2009-03-02 00:06:44 +00:00
Woody Gilk 05590b9058 Deleted Router, starting work on bootstrap, updated Request and Controller, and added Request_Exception 2009-02-28 11:42:02 +00:00
Woody Gilk 12271c68dc Updated Route, adding get/set/all methods to act as a singleton location for Route storage. Created initial Request class, the replacement for Router/Input. 2009-02-24 01:23:16 -06:00