DooPHP - fastest MVC based PHP framework

Learn More

The Official Blog of DooPHP

News, Updates, Tips & Tricks for DooPHP

Subscribe to Blog

Subscribe to the official blog of DooPHP framework.

Tips on Configuration2009-07-23 11:20:27

Tips on Configuration

As you can see from the demos, DooPHP does not use any Globals or had any define() used in the code. All configs are done in common.conf.php where variables are defined in assoc array style.

Other than the default configurations which are all in Capitalized characters, you can define your own setting variables. It is recommended that you define them in lowercase as DooPHP might add on new configs in later versions.

$config['salt_key'] = 'jjr7&688e-h3er';
$config['blog_pagesize'] = 12;

#retrieve in your code via:
Doo::conf()->salt_key;
Doo::conf()->blog_pagesize;

This is one good thing about DooPHP as it will not conflict with your application since no define() or globals are used. Not a single one ;)


Published under: Tips & Tricks Share/Save/Bookmark

0 Comments:

Be the first to comment. :)

Leave a Reply

About

Categories

Archives


Syndication