Profile
Achievement
freelancephp's Recent SnippetsTagged class
- All /
« Prev 1 Next »
View class that contains features like:
- get vars inside the view with:
1) $var1
2) $this->var1
3) or $this->get( 'var1', 'defaultValue' )
- factory method for direct chaining:
Lim_View::factory( 'test.php' )->set( 'var1', 'value1' )->...
0
786
posted 13 years ago by freelancephp
Managing globals with the registry pattern. This class provides lazy loading functionallity. This means it is possible to add a callback or class (with arguments) which will be called or instanciated when it is being used for the first time.
0
935
posted 14 years ago by freelancephp