Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将控制器属性$viewPath设置为插件中文件夹的路径? 我正在扩展 CakeDC 用户插件的用户控制器,但我想重用相同的视图,而不必将它们从Plugin/users/View复制到app/View. 我想将 viewPath 设置为,Plugin/users/View但是当我这样做时,它会附加到应用程序的路径。
Plugin/users/View
app/View
关于什么:
var $viewPath = APP_DIR.'/Plugin/[Plugin_Name]/View/';