[Solar-talk] Re: Solar::register()

Antti Holvikari anttih at gmail.com
Mon May 8 00:39:33 PDT 2006


On 5/8/06, Paul M Jones <pmjones at solarphp.com> wrote:
>      // but if you try to register an object with the same name,
>      // it currently throws an exception.
>      $result = Solar::register('example1', 'Solar_Test_Example');

Sorry, I didn't put it right. I meant returning void instead of
throwing an Exception, only in the case above. I don't neccessarily
think it's worth throwing an Exception in this case. This way if the
object with same name is registered and you try to register it again
the script continues. Do you think this is bad practice?

--
Antti Holvikari <http://antti.dotgeek.org/blog>
Zend Certified Engineer (ZCE)


More information about the solar-talk mailing list