Currently view scripts located in APPLICATION_PATH . '/modules/my_module/views/scripts/'
. I want to place scripts in '/modules/my_module/views/'
(remove scripts folder). How to achieve this?
application.ini:
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] =
resources.view.scriptPath.default = APPLICATION_PATH "/views"
You could use the setScriptPath(APPLICATION_PATH . '/modules/my_module/views')
view method to replace the script path.
You can also add your script path without overriding the previous one, using addScriptPath(APPLICATION_PATH . '/modules/my_module/views')
. I use it to have organized the view scripts in different folders.
Hope that helps...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With