Mike Cao
5414b906f6
Merge pull request #62 from ozh/ozh-jsonp
...
JSONP support
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
5ec68f35d5
Updated methods section
12 years ago
Mike Cao
23fc99ec91
Updated all tests to use Engine class.
12 years ago
Mike Cao
48f2279a7c
Merge pull request #55 from engelnyst/patch-1
...
Documentation fix
12 years ago
enyst
55651d2b08
Document instance calls fix.
...
Signed-off-by: enyst <engel.nyst@gmail.com>
12 years ago
engelnyst
c0ae6dbc31
Update README.md
...
Fixes #53
Signed-off-by: enyst <engel.nyst@gmail.com>
12 years ago
Mike Cao
c233214a39
Added section about configuration values.
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
000b1db3be
Added example for new Engine class.
12 years ago
Mike Cao
2050027db6
Cleaned up initialization process.
12 years ago
Mike Cao
66a403ff96
Merge remote-tracking branch 'origin/master'
12 years ago
Mike Cao
84078158c3
Introduced new Engine class.
...
Core functionality has been moved to a namespaced Engine class. The
existing Flight class is now just a static pass-through to the Engine class.
Also fixed autoloading and initialization issues.
12 years ago
Mike Cao
618c2f1d87
Merge pull request #44 from mateuszgachowski/master
...
Fixed documentation
12 years ago
Mateusz Gachowski
90c337993a
Fixed documentation
12 years ago
Mike Cao
16e2365719
Start proper versioning.
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
ef72548a1a
Changed header sizes.
12 years ago
Mike Cao
28ae5e0aec
Added route passing functionality.
12 years ago
Mike Cao
9fb6b54665
Merge remote-tracking branch 'origin/master'
12 years ago
Mike Cao
483ff648c4
Updated readme.
12 years ago
Mike Cao
78f86a15c6
Merge pull request #29 from magnetikonline/patch-1
...
Fixed variable name typo in template/layout example.
12 years ago
Peter Mescalchin
0a480e1f4a
Fixed variable name typo in template/layout example.
...
This is also a typo on the http://flightphp.com/learn page.
12 years ago
Mike Cao
1cdd2bfad1
Merge pull request #26 from Xanza/patch-1
...
rework with syntax highlighting
12 years ago
Mike Cao
399f22ef3d
Merge pull request #27 from kafene/master
...
Don't let header fields clobber eachother
12 years ago
kafene
69e5dab546
Don't let header fields clobber eachother
...
See: http://php.net/manual/en/function.header.php
2nd option, $replace, should be false if sending multiple headers with the same name.
The difference can be observed by editing index.php (the example index page) so that before `echo 'hello'` is a line: `flight::response()->cache(false);`
and editing Response.php so that before `exit($this->body)` is a line: `var_dump(headers_list());`
Before change:
`array (size=3)`
`0 => string 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' (length=38)`
`1 => string 'Cache-Control: max-age=0' (length=24)`
`2 => string 'Pragma: no-cache' (length=16)`
After:
`array (size=5)`
`0 => string 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' (length=38)`
`1 => string 'Cache-Control: no-store, no-cache, must-revalidate' (length=50)`
`2 => string 'Cache-Control: post-check=0, pre-check=0' (length=40)`
`3 => string 'Cache-Control: max-age=0' (length=24)`
`4 => string 'Pragma: no-cache' (length=16)`
12 years ago
kafene
293a1e88ed
Merge pull request #3 from mikecao/master
...
update
12 years ago
Zachary Queal
03b4dfe825
rework with syntax highlighting
...
Reworked the README to include syntax highlighting for sanity while reading, as well as a few posed changes for `uniformity`.
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
ae32c228d1
Changed PHPUnit references. Added new tests for router.
12 years ago
Mike Cao
61ce37ca64
Updated router pattern matching.
12 years ago
Mike Cao
58303b2ae3
Added test for Request class.
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
Mike Cao
2709c2502f
Merge pull request #22 from kafene/master
...
a few changes to request.php
12 years ago