Should I use .ini config with Zend Framework?

I am recently learning Zend Framework. I followed the early start of the zend framework and ... it was great. The only thing I didn't like was using the .ini file to set the bootstrap, class, etc.

Can configurations be set using code only? I've searched for it but no luck.

+2


source to share


1 answer


I found out myself.



$config = array(
    "bootstrap"=>array(
        "path"=>"Bootstrap.php"
        ,"class"=>"Bootstrap"
    )
);

$config = new Zend_Config($config);

// Create application, bootstrap, and run
$application = new Zend_Application(
    'production'
    ,$config
);

      

+3


source







All Articles