New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Overriding Plugin Templates from Inside Your Application" does not work #5338
Comments
Theme paths are always before the app/plugin paths. In your path snippet, the application overrides are the 3rd path checked (after the active theme). The docs are still correct, your scenario also has a theme which the application cannot override. |
I see.. So I guess the documentation doesn't make it clear enough what the distinction between a "normal" plugin and a theme is and what the implications are. |
Hi all, When iinstall AclManager plugin vía Composer it doesn't work as described in the manual. To override virews must override without vendor, then it works. The version of CakePHP is 3.5. Is the documentation really good or is there something I have not understood? Regards! |
The documentation should be how the code is working. @ivanamat could you open an issue in cakephp/cakephp for this? |
Hi @markstory, The issue has been created. Regards! |
Thanks! |
Refs cakephp/cakephp#11910 Refs #5338
Is this ok now? |
The feature "Overriding Plugin Templates from Inside Your Application" documented at: https://book.cakephp.org/3.0/en/plugins.html#overriding-plugin-templates-from-inside-your-application does not work, because the theme/plugin search paths are always the first two.
The tests say so too:
https://github.com/cakephp/cakephp/blob/3.5.4/tests/TestCase/View/ViewTest.php#L516-L521
Could be related:
cakephp/cakephp#4064
cakephp/cakephp#11198
cakephp/cakephp#11210
There is another, related feature that does not work, which I already documented in #5337.
The text was updated successfully, but these errors were encountered: