fadrian06
a68fc32204
Unnecessary explicitness :|
8 months ago
fadrian06
f3453cab17
Simplified fix thanks to @vlakoff ( https://github.com/vlakoff )
8 months ago
fadrian06
eadf433334
Added flag to not break Flight users code
9 months ago
fadrian06
161a35a0a2
Added test on ViewTest
9 months ago
fadrian06
253c86482e
Fixed yoda comparisons
11 months ago
n0nag0n
df90d69787
so many phpcs fixes. No more, no more!
1 year ago
fadrian06
7015e5d3ba
Moved copyright and license to a public place :D
1 year ago
fadrian06
44a056ca30
Fixed phpcs format problems in the rest of Flight modules
1 year ago
Austin Collier
cc4338a34b
added PSR12 coding style to files.
1 year ago
fadrian06
b426e42e4f
Added typehints to View::class
1 year ago
fadrian06
193cf9bb8b
Removed type hints to PHP 5 compatibility
1 year ago
fadrian06
147c42449d
Added PHP Type hints to View class
1 year ago
fadrian06
7ac12b7891
Removed repeated code
1 year ago
fadrian06
9cd5b9dc0d
Fixed windows directory separator compatibility
1 year ago
n0nag0n
bf2075245e
Got it to 90% coverage with some windows fixes
1 year ago
n0nag0n
d075fc8be6
100% View class coverage
1 year ago
fadrian06
fbcc9108c2
DocBlocks improved
1 year ago
Masroor Ehsan
04e471bf46
PHP ^7.4|^8.0 compatibility
4 years ago
Mike Cao
cabbb25fcc
Added support for custom template file extensions.
9 years ago
Erwin
2f4210ad3f
Using multiple template paths
...
I want to use more template directory's along with the multiple flight.views.path during execution of the script. So want to be able to change it on the fly, during execution. And I want the extra template directory's to be outside of the normal flight.views.path.
I tried a lot of ways without changing the View.php but this change is simpel and works for me.
This way I can easily do:
Flight::render(TPL_PATH.'hello', ['name'=>'Bob'], 'header_content');
10 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
...
No need to use both ob_get_contents() and ob_end_clean() when you can just use ob_get_clean().
11 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
ecc0b87024
Updated getTemplate to allow subdirectories.
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
...
using basename instead of testing with strpos.
12 years ago
Mike Cao
8783134495
Changed variable set method. Fixed error logging.
13 years ago
Mike Cao
5d789ceb2e
More refactoring, updated documenation
13 years ago
Mike Cao
e2f1dc99bb
Major refactoring, implemented namespaces
13 years ago