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] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
