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:

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 😉

Previous PostNextNext Post

Leave a Reply

Your email address will not be published.