Commit Graph

349 Commits (master)

Author SHA1 Message Date
Mike Cao 6aea7394c4 Remove $route from parameter list, only pass when dispatching callback.
8 years ago
Mike Cao 9c8d492799 Removed JSON encode depth parameter to keep PHP 5.3 compatibility.
8 years ago
Mike Cao b30d5e5fa2 Moved map method check to Engine. Added get method to Loader. Added new tests.
8 years ago
Shane Armstrong a9ced778ee #203 - Executing an unmapped method within the engine dispatcher now throws an Exception, clarified the return class of Flight::app()
8 years ago
Shane Armstrong b7b929bf99 #290 - JSON methods now support encode option/depth, added missing arguments to json/jsonp method documentation, _json/_jsonp methods now list arguments on individual lines to remain PSR-2 compliant
8 years ago
Mike Cao ec24d78602 Allow static methods to be called using a string.
9 years ago
susuper bf7b6d6431 Changed Last-Modified HTTP header format
9 years ago
Mike Cao f3fa0513fe Updated error handling for PHP 7.
9 years ago
Mike Cao b96aaa7967 Added charset option for JSON requests.
9 years ago
Yuri Tkachenko d191ca821e fix namespace ref
9 years ago
Yuri Tkachenko 561542f068 Redirects > Request & Response
9 years ago
Yuri Tkachenko 6242b54edb added request(), response(), router(), view() @method reference to
9 years ago
Mike Cao b9dfda3fd6 Do not send a new response for json requests.
9 years ago
Mike Cao cabbb25fcc Added support for custom template file extensions.
9 years ago
Mike Cao 7fd3594ac7 Added ability to perform case sensitive matching of URLs.
9 years ago
Mike Cao 1feeb95ff2 Encode reserved @ character in URLs.
9 years ago
Mike Cao 486ec7c689 Application now initialized in Flight::app() instead of __callStatic.
9 years ago
Edward Brosens afbf306336 add getter for protected headers property
10 years ago
Yuriy Tkachenko b187f3564f Correct PHPDoc for phpStorm
10 years ago
Seth Battin bb11ca47bc include pragma='no-cache' in the cache header reset
10 years ago
Mike Cao 10750b5ce3 getBody should check for PATCH method.
10 years ago
Mike Cao a32f2c2087 getMethod should return uppercase string.
10 years ago
Mike Cao 0c8b665304 Bump version. Minor syntax update.
10 years ago
everflux 268cf0cb66 Provide content-length header if response has a body
10 years ago
Mike Cao 7c50eb7cfb Passing to a non-matching route should return a 404.
10 years ago
Alexander c4ab005462 Added list of methods for autocomplete
10 years ago
Erwin 2f4210ad3f Using multiple template paths
10 years ago
Daniel Stelljes 54440d1db0 Removed static body variable from Request
10 years ago
Daniel Stelljes 703536d2bf Set up request body caching
10 years ago
Mike Cao ef76d72b56 Added ability to get all saved variables.
10 years ago
Lars-Jørgen Kristiansen d5e808a495 fixed message for http code 306
11 years ago
Lars-Jørgen Kristiansen b8a1c1e163 added all HTTP status codes from http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
11 years ago
Lars-Jørgen Kristiansen e6ed90e3fb Added more HTTP status codes
11 years ago
Mike Cao 64d384ddff Splat should consider trailing slash in URLs.
11 years ago
Mike Cao 88f4c1fb71 Fixed issue with splats when used with named parameters.
11 years ago
Mike Cao 7745f6a34c Merge pull request #141 from pine3ree/patch-1
11 years ago
maks feltrin bcb5b120a9 Update Router.php
11 years ago
maks feltrin 229cbd24f5 replacing array_push with faster []
11 years ago
kafene 3392751dba Add support for getting request status
11 years ago
kafene 71f66b4d5d Add support for HTTP status code 418 (Permanent Redirect)
11 years ago
Mike Cao c0fa0bed7c Redirects should always consider the base directory.
11 years ago
Stefan Meinecke 5e284a1d9c Updated class comment.
11 years ago
Mike Cao 81041d418b JSON request input is now stored in the data property.
11 years ago
Mike Cao da40e03eb4 Removed the body property from the Request class.
11 years ago
Mike Cao d84e51ba47 Updated route object passing functionality.
11 years ago
Mike Cao ab2aba4e7d Added method to get the request body.
11 years ago
Mike Cao 0f49cc7abc Converted helper methods to public and static.
11 years ago
Cuonic d097c21dcb Fixed code to work when body is empty
11 years ago
Cuonic a8f50e2f4b Fixed problem with Request Json array
11 years ago
Quang Nhut Lam-Nguyen bed3824192 Change getVar() function from private to public
11 years ago
Mike Cao b10b294d83 Added method to get the application object instance.
11 years ago
Berkus Decker c0c7b9dcd9 Modify Request based on feedback from Mike.
11 years ago
Berkus 62c4f2fa0b Add support for parsed JSON property in Request.
11 years ago
Mike Cao b9b2d0fa2d Added ability to register callbacks for class instantiation.
11 years ago
Mike Cao 6b6397764d Use array in str_replace call.
11 years ago
Mike Cao 6239ab4d80 Prevent collision of $template variable.
11 years ago
Pascal Borreli 2648a5216e Fixed typos
11 years ago
Micah Wood 3a4c0c72bf Simplify output buffering code
11 years ago
Mike Cao fdb88e842a Fixed documentation.
11 years ago
Mike Cao 7817255a61 Added ability to get splat from URL pattern.
11 years ago
Mike Cao b8e400e1be Converted JSONP config into a parameter. Fixed incorrect content type.
11 years ago
Mike Cao 777ac096ec JSON method should send a clean response.
11 years ago
Mike Cao 30195237e5 Reverted response handling.
11 years ago
Mike Cao 6a1029a187 Response should only be sent once.
11 years ago
Mike Cao b8026d9828 Sending a response should not exit the program.
11 years ago
Mike Cao 5ba910981f Allow HTTP method overriding.
11 years ago
Mike Cao 86d1ea20e4 Fixed reference to $this.
11 years ago
Mike Cao 001c8ec301 Fixed error with calling stop method.
11 years ago
Mike Cao 6fe4e32fee Added additional options for JSON methods.
11 years ago
Mike Cao 6696c0d267 Dispatcher should check for valid callback.
11 years ago
Mike Cao 3fde3685c5 Formatting.
11 years ago
Eric Anderson 1a0eede079 Use $_SERVER instead of getenv.
11 years ago
ozh 258e56b4ec Use $this
11 years ago
ozh 5e0627f41b Coding style (same white space as original file)
11 years ago
ozh 4ccfe8c386 JSONP support
11 years ago
Mike Cao 7e1a098f6c Autoloader should not throw exceptions.
12 years ago
Mike Cao 988d4f5631 Exception should be thrown and not handled.
12 years ago
Mike Cao 8ca9b2d76d Setting status should not send headers.
12 years ago
Mike Cao 2d6a04d514 Made default properties into class variables.
12 years ago
Mike Cao 2ce369cb50 Flush existing output before the start method.
12 years ago
Mike Cao 3a4a30e879 Updated check for base_url.
12 years ago
Mike Cao d41795cbdc Updated handling of subdirectories and redirects.
12 years ago
Mike Cao 1acb68756c Remove duplicates from loader directories.
12 years ago
Mike Cao 93d7602b20 Removed caching from halt method.
12 years ago
Mike Cao b4a9d6f70e Fixed issue with 304 caching. Fixed PHP 5.3 compatibility.
12 years ago
Mike Cao 2050027db6 Cleaned up initialization process.
12 years ago
Mike Cao 84078158c3 Introduced new Engine class.
12 years ago
Mike Cao a04020d50e Fix line feeds.
12 years ago
Mike Cao f64774881f Fixed issue with url pattern matching.
12 years ago
Mike Cao 28ae5e0aec Added route passing functionality.
12 years ago
kafene 69e5dab546 Don't let header fields clobber eachother
12 years ago
Mike Cao 4cf069a552 Minor code changes.
12 years ago
Mike Cao 65807a1f29 Parse optional parameters before regex.
12 years ago
Mike Cao 1ba8770da7 Added matched regex property.
12 years ago
Mike Cao 61ce37ca64 Updated router pattern matching.
12 years ago
Mike Cao 98d57a82b4 $_GET should not be overwritten.
12 years ago
Mike Cao ecc0b87024 Updated getTemplate to allow subdirectories.
12 years ago
Mike Cao 440cca5901 Minor code changes
12 years ago
kafene 96c25ff1f3 Fixed never-returned proxy IP
12 years ago
kafene 5270c6b23a a few enhancements to request.php
12 years ago
Mike Cao 13543f696b Made event parameters optional
12 years ago
Mike Cao f2bd6f4e02 Allow framework to be reinitialized
12 years ago
Mike Cao cec890c585 Code cleanup
12 years ago
kafene fa020e39d0 Update flight/template/View.php
12 years ago
Mike Cao c6fdc21bd8 Fixed PHP notice error
12 years ago
Mike Cao 6bf1ac54b1 Only raise errors from error_reporting()
12 years ago
Mike Cao 1d84913d7f Removed error filtering and fixed notice errors.
12 years ago
Mike Cao d081879379 Parameters should be URL decoded.
12 years ago
Mike Cao 4f48bd36be Fixed problem regexes in optional parameters
12 years ago
Mike Cao 257d0650d3 Added support for optional route parameters
12 years ago
Mike Cao 37c50c5eee Added method to get real IP address
12 years ago
Mike Cao 9a115b84ab JSON method should use existing response
12 years ago
Mike Cao 5f98e1e06c Fixed issue with setting status codes.
12 years ago
Bag b8dc7ae4f3 Add support for calling methods on object instance's.
13 years ago
Mike Cao fc10a50ca3 Fixed redirect problem when running in a subfolder
13 years ago
Mike Cao ef251c818d Removed obsolete call
13 years ago
Mike Cao 830088733d Fixed PHP notices
13 years ago
Mike Cao 8783134495 Changed variable set method. Fixed error logging.
13 years ago
Mike Cao dd819b17d8 Fixed count method.
13 years ago
Mike Cao b70f831c0e Added new Collection class, updated documentation
13 years ago
Mike Cao 67ad454592 Fixed reference error
13 years ago
Mike Cao 5d789ceb2e More refactoring, updated documenation
13 years ago
Mike Cao e2f1dc99bb Major refactoring, implemented namespaces
13 years ago
Mike Cao 8af17f2215 Changed render method for views and layouts.
13 years ago
Mike Cao 516873fe13 Added method to check if template file exists.
14 years ago
Mike Cao d5c696a969 Changed render method to take a layout parameter.
14 years ago
Mike Cao 853155b759 Fixed issue with empty named parameters
14 years ago
Mike Cao 4b682b67c0 Code cleanup
14 years ago
Mike Cao 6b059c2492 Added ability to load classes in views
14 years ago
Mike Cao eeb32df46e Added check for missing template file
14 years ago
Mike Cao e1cf8a1f99 Changed autoloading to allow other autloaders to run
14 years ago
Mike Cao 739cdb34d0 Added method for sending JSON responses
14 years ago
Mike Cao 9471359495 Template variables now accessible to all views
14 years ago
Mike Cao 84b8eeb044 Allow rendered content to be saved into a variable
14 years ago
Mike Cao dcca6551c5 Make root '/' the default request
14 years ago
Mike Cao fee13cf2ca Added view helper functionality
14 years ago
Mike Cao c6df2125f6 Fixed problem with callback not firing
14 years ago
Mike Cao b085ecd888 Added more properties to Request object
14 years ago
Mike Cao 9f24bc0de6 Pass named parameters as arguments to callback
14 years ago
Mike Cao a5ea267d50 Changed scope of instances array
14 years ago
Mike Cao aab7471c85 Move object code to same code block
14 years ago
Mike Cao 9d43930d2d Make sure the init callback is only called once.
14 years ago
Mike Cao 1958c1f1a5 Changed header info.
14 years ago
Mike Cao ac3a75fe4f Added config for view path.
14 years ago
Mike Cao c84e52b998 Load method was not reading the shared parameter properly.
14 years ago
Mike Cao a65e4ba1c8 Fixed null array error. Added check for catchall route.
14 years ago
Mike Cao 370e17be4e Fixed method documentation
14 years ago
Mike Cao 540f7ae44f Object can use foreach in PHP 5
14 years ago
Mike Cao ce8dbfc435 Initial commit
14 years ago