# |
Oct 14th 2019, 18:07 |
ricksaccous |
i mean |
# |
Oct 14th 2019, 18:07 |
graziel |
it gets updated sometimes and ppl forget/dont know they need to update their files manually |
# |
Oct 14th 2019, 18:07 |
ricksaccous |
yeah if you've updated cake but haven't updated the bin/bake files that could be the problem |
# |
Oct 14th 2019, 18:07 |
graziel |
by app skeleton he ment https://github.com/cakephp/app |
# |
Oct 14th 2019, 18:06 |
david |
does* |
# |
Oct 14th 2019, 18:06 |
david |
the shell do all the work |
# |
Oct 14th 2019, 18:05 |
david |
only the shell |
# |
Oct 14th 2019, 18:05 |
david |
i mean, the plugin has no effective code |
# |
Oct 14th 2019, 18:05 |
david |
the shell takes the files, rename them, and copy them to my app |
# |
Oct 14th 2019, 18:05 |
david |
the plugin is an app skeleton |
# |
Oct 14th 2019, 18:04 |
graziel |
can you post your plugin code somewhere? |
# |
Oct 14th 2019, 18:03 |
david |
yes, @ricksaccous |
# |
Oct 14th 2019, 18:03 |
david |
sorry, CmsSection is the name of the plugin |
# |
Oct 14th 2019, 18:03 |
ricksaccous |
is your application skeleton up to date? |
# |
Oct 14th 2019, 18:03 |
david |
Application.php has $this->addPlugin('CmsSection'); |
# |
Oct 14th 2019, 18:02 |
david |
yes |
# |
Oct 14th 2019, 18:02 |
admad |
You have loaded the plugin in application right? |
# |
Oct 14th 2019, 18:02 |
admad |
Then cake shouldn't have problem finding it and issue is something else. |
# |
Oct 14th 2019, 18:01 |
david |
yes, it is |
# |
Oct 14th 2019, 18:01 |
admad |
Is your plugin listed in vendor/cakephp-plugins.php? |
# |
Oct 14th 2019, 17:59 |
graziel |
and by extension also cake |
# |
Oct 14th 2019, 17:59 |
graziel |
doesnt matter autoload needs to know where to look for classes |
# |
Oct 14th 2019, 17:58 |
david |
I have baked it, but my plugin is not a plugin from composer |
# |
Oct 14th 2019, 17:57 |
graziel |
thats why bake is better it does it for you |
# |
Oct 14th 2019, 17:57 |
graziel |
to autoload section |
# |
Oct 14th 2019, 17:56 |
graziel |
"MyPlugin\\": "./plugins/MyPlugin/src/" |
# |
Oct 14th 2019, 17:56 |
graziel |
also if you didnt change composer.json you need to add |
# |
Oct 14th 2019, 17:56 |
david |
no changes... after dump-autoload |
# |
Oct 14th 2019, 17:54 |
admad |
Try running `composer dump-autoload` |
# |
Oct 14th 2019, 17:54 |
david |
can't remember, really |
# |
Oct 14th 2019, 17:54 |
david |
updated, I think |
# |
Oct 14th 2019, 17:54 |
david |
mmm |
# |
Oct 14th 2019, 17:53 |
graziel |
cake version |
# |
Oct 14th 2019, 17:53 |
david |
? |
# |
Oct 14th 2019, 17:53 |
david |
what do you mean with "updated code or new" |
# |
Oct 14th 2019, 17:51 |
graziel |
it might be same problem as in https://discourse.cakephp.org/t/running-commands-attempts-to-load-shell-instead/4381/10?u=graziel |
# |
Oct 14th 2019, 17:51 |
david |
and bake command has created it with the shell |
# |
Oct 14th 2019, 17:51 |
graziel |
i ment whole app |
# |
Oct 14th 2019, 17:51 |
david |
I have deleted /plugins/MyPlugin/src/Shell |
# |
Oct 14th 2019, 17:50 |
david |
new code |
# |
Oct 14th 2019, 17:50 |
graziel |
hm is it updated code or new? |