I've been a long time user of CakePHP (since pre v1) but have only recently checked out CakePHP 2.x.
I'm writing a plugin for CakePHP 2.x, and am looking for a quick and easy way for users to configure the plugin upon loading it.
I'm hoping to achieve something like this:
CakePlugin::load('CoolPlugin', array(
'config1' => 'value1',
'config2' => true,
'config3' => array(
'subkeyA' => 'valueA',
'subkeyB' => 'valueB'
)
));
But I'm not exactly sure how the values can be passed to CoolPlugin.
If that's not the recommended way, please enlighten me on the best way for plugin configurations.
Thank you!
-- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment