Packages help - do i need to tell C5 about included controllers
Permalink
I'm looking at the packaging functionality, and I think I'm missing something.
I can see that you need to install blocks and themes in the package controller, but what about custom controllers.
If I wanted to override a controller without packages, I'd replicate the path & file in the root/controllers path, so I assumed I just do the same in the packages/mypackage/controllers path.
Doesn't seem to work though, do I need to run any special methods to tell C5 about my controller, similar to the install of blocks nand themes in the package controller?
Hope that makes sense.
I can see that you need to install blocks and themes in the package controller, but what about custom controllers.
If I wanted to override a controller without packages, I'd replicate the path & file in the root/controllers path, so I assumed I just do the same in the packages/mypackage/controllers path.
Doesn't seem to work though, do I need to run any special methods to tell C5 about my controller, similar to the install of blocks nand themes in the package controller?
Hope that makes sense.
I'm not sure this can be done from a package. If you just override the controller in your site, it will pick it up, but if it's in a package directory, it won't.
I believe that there is a fix in the upcoming 5.4.1 for this, but not in the current version.
I believe that there is a fix in the upcoming 5.4.1 for this, but not in the current version.
Thanks Jordan. I'll install the 5.4.1 RC and try it there.
5.4.1 installed but no joy, has anyone else been able to get this working?
The controller in question is one of the dashboard/modules. I understand these can be packaged.
I've upgraded my C5 to 5.4 just to make certain, but still not working. But the same code does work when not packaged and added to the root/controllers/ directory.
Any ideas?