The constant is an email address and may be used in other parts of the application so I'll keep it in bootstrap, other things would be best as default values.
On 10 November 2010 17:54, cricket <[email protected]> wrote: > On Wed, Nov 10, 2010 at 4:42 AM, Stephen <[email protected]> > wrote: > > Thanks for the advice cricket. > > > > I decided to set up some default settings in bootstrap, achieved this > using > > array_merge. > > > > function _someFunction($options=array()) { > > $defaults=array('someKey' => Configure::read('SomeKey'), ...); > > $options = array_merge($defaults, $options); > > ... > > } > > > > I figure it shouldn't be to hard for anybody who might take over in the > > future to figure out what's going on. > > Or you could just set the method params with default values. > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > -- Kind Regards Stephen @ NinjaCoderMonkey www.ninjacodermonkey.co.uk Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
