T h o u g h t s

Filtered by tag: zend_config_ini, show all

Zend Framework Simple .ini Loader

>>Friday, February 12, 2010<<

When I am working on Zend Framework projects I usually find that I am referencing .ini files a lot within my code, which usually means typing the following line many times:

<?php
$oConfig = new Zend_Config_Ini("../application/configs/config.ini");
?>

Although it is simple enough to remember, it does get tedious after a while and I always wondered what the execution time of the code was like calling the same config file multiple times on each load (i.e. in different classes).

read more...

Tags: scripts, val_config, zend_config_ini, zf

Subscribe

P h o t o g r a p h y

P o r t f o l i o

U s e f u l   S t u f f

A b o u t   M e

pretty-pensive