Mike Cao
0bb5001fce
Merge pull request #21 from kafene/master
...
using basename instead of substr.
12 years ago
kafene
fa020e39d0
Update flight/template/View.php
...
using basename instead of testing with strpos.
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
1991a65d4d
Added section about 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
f41d2efa8a
Fixed typo
12 years ago
Mike Cao
34dd187b19
Merge pull request #15 from davidkuridza/master
...
Add composer support
12 years ago
David Kuridža
a1eb9ec633
fix composer's autoloading path
12 years ago
David Kuridža
af4ecffed8
add composer support
12 years ago
Mike Cao
5f98e1e06c
Fixed issue with setting status codes.
12 years ago
Mike Cao
cb05cee052
Merge pull request #13 from thybag/master
...
Support for calling methods on an object instance.
13 years ago
Bag
b8dc7ae4f3
Add support for calling methods on object instance's.
...
Allows users to pass an instance of a class in to the Flight routes function, and invoke methods on it in a non-static context.
Example usage:
$obj = new Obj();
Flight::route('/myMethod', array($obj,'myMethod'));
13 years ago
Mike Cao
fc10a50ca3
Fixed redirect problem when running in a subfolder
13 years ago
Mike Cao
4d372b0d44
Fixed docs
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
17d18fbdcb
Updated section about requests.
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.
...
The previous render method allowed you to render a template
directly into a layout. This however only allowed one template
to be used per layout. The new method instead stores the template
results as a view variable, which the layout can reference.
Also expanded documentation on views.
Added a has() method to the view to check if a variable is set.
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
fb507428b7
Removed $this reference
14 years ago
Mike Cao
b9034d7c51
Updated README to reflect new view variables
14 years ago
Mike Cao
dcca6551c5
Make root '/' the default request
14 years ago
Mike Cao
509b832377
Updated README
14 years ago
Mike Cao
2978d6b8a5
Added example file
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
8e4b75f5e6
Fix typo
14 years ago
Mike Cao
f54b614bc9
Added section about HTTP caching
14 years ago