My App is both using prefix Admin
and having a plugin RubriquesManager
.
In the plugin RubriquesManager
I have 2 elements articles
for each side (front side and admin side) :
/plugins/RubriquesManager/templates/element/articles.php
displays articles for front side/plugins/RubriquesManager/templates/Admin/element/articles.php
displays articles for admin side (with buttons for article editing, deleting, ...)
In order to override in my app the front side element articles
of plugin RubriquesManager
I have created the file :
/templates/plugin/RubriquesManager/element/articles.php
The problem is that Cake is using this element both for overriding element articles
for front side and also for admin side while I didn't create /templates/plugin/RubriquesManager/Admin/element/articles.php
!...
I don't understand the point for Cake to act like that ? Is there a way to tell to Cake not to try to overide for admin side ?