简体   繁体   中英

CakePHP Missing Plugin exception after deletion

I just deleted the Media Plugin and edited my bootstrap.php. I'm now getting a Missing plugin exception. Am I doing something wrong?

You're probably still referring to the plugin somewhere in your application, for example by trying to use a Helper or a Model that uses the plugin notation;

  • Clear the cache of your application, by removing the content of the app/tmp/cache/models and app/tmp/cache/persistent/ directories
  • Look for helpers, components, behaviors and models that use the plugin, for example:

Helpers and models in a controller:

 public $helpers = array(
    'Media.Somehelper',
 );

 public $uses = array(
    'Media.Somemodel'
 );

Or in a model;

public $actsAs => array(
    'Media.Somebehavior',
);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM