Hi Jurian,

Yeah, that's what I was afraid of :).

It's just that I used not to have to worry about calling stuff like this:
<?php echo Zend_Registry::get('config')->app->name; ?>
This would just echo null if it wasn't set. 

With arrays I need to check for an existing index on every call.
<?php 
$config = Zend_Registry::get('config'); 
!isset($config['app']['name']) || echo $config['app']['name'];
?>

But if that's how it is I'd better stick with arrays, then. Thanks.

Regards, Joost
-- 
View this message in context: 
http://n4.nabble.com/Access-Zend-Application-config-ini-settings-as-object-not-array-tp758837p758850.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to