0
votes

How do I set the controller property $viewPath to be set as a path to a folder within a plugin?

I'm extending the Users controller of CakeDC users plugin but I would like to reuse the same views without having to duplicate them from Plugin/users/View copying to app/View. I would like to set the viewPath to be Plugin/users/View but when I do that its appending with path to app.

1

1 Answers

0
votes

What about:

var $viewPath = APP_DIR.'/Plugin/[Plugin_Name]/View/';