Conf logic

B.Kamer <[email protected]> Fri, 1 Apr 2005 22:32:43 +0200
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
a general question on the new Conf... By example of Simpleentity

shouldn't this configuration:

   <section id="table_prefix">
     <property id="default"></property>

result in an empty string (for 'default') instead of NULL when queried 
by

$settings = $conf->get('/simpleentity');

this test is now not possible becuase default is NULL and thus !isset

         if (!isset($settings['table_prefix']['default'])) {
             bc_throw(new BcException(sprintf('The setting "%s" does not 
exist in configuration "%s"', 'table_prefix/default', 
'conf/vortex/simpleentity/simpleentity.conf.xml'), 
'Conf.MissingConf'));
             return false;
         }

_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev