Skip to content
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

Overwrite the view of the plugin #26

Closed
davidspeijer opened this issue Apr 2, 2018 · 2 comments
Closed

Overwrite the view of the plugin #26

davidspeijer opened this issue Apr 2, 2018 · 2 comments

Comments

@davidspeijer
Copy link

davidspeijer commented Apr 2, 2018

I want to tweak the view a bit so it is using my style.

I created /src/Template/Plugin/ivanamat/AclManager/Acl and added copies of index.ctp & permissions.ctp. However they are not loaded (still using the regular template files in the vendor dir).

I used the info on
https://book.cakephp.org/3.0/en/plugins.html#overriding-plugin-templates-from-inside-your-application

I'm not using the admin prefix.

@ivanamat
Copy link
Owner

ivanamat commented Apr 5, 2018

Hi! @davidspeijer

It really does not work as described in the documentation. To overwrite the views you must overwrite the views without a vendor.

I have commented on the problem in the official CakePHP repository in a thread that is already open.

Read this: cakephp/docs#5338 (comment)

The overrided view example wthout vendor: http://test.ivanamat.es/timing/AclManager

Regards!

@ivanamat ivanamat closed this as completed Apr 5, 2018
@ivanamat
Copy link
Owner

ivanamat commented Apr 7, 2018

Hi @davidspeijer

I created this issue cakephp/cakephp#11910

As markstory comment in this issue:

The documentation should be how the code is working

Regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants