Monday, October 7, 2013

CakePlugin::loadAll not loading

Hi,
I use CakePHP 2.3.1 but CakePlugin::loadAll() doesn't seem to work although to me it seems I've done everything according to the book.

My plugin bootstrap is here:
app/Plugin/Slider/Config/bootstrap.php

And in app/Config/bootstrap.php I have:
CakePlugin::loadAll(array('routes' => true, 'bootstrap' => true, 'ignoreMissing' => true));

But it doesn't work.

What DOES WORK in app/Config/bootstrap.php is:
CakePlugin::load('Slider', array('bootstrap' => true, 'ignoreMissing' => true));

But I'd really should get it working with CakePlugin::loadAll.
Any ideas what might be wrong?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: