I had started putting my form element view scripts under '/application/views/scripts/form/' and was able to reference them by 'form/scriptname.phtml', but now I need to make a 'form' controller and I realize this was a short-sighted solution. The examples I've seen use something like '/path/to/your/view/scripts/' which doesn't help me with what's a logical/recommended place to put them.
Thanks!
I use non-standard file structure and use modules for my applications:
To do it this way, you have to add the module directory in your config for Zend_Application:
View script paths are loaded in LIFO order. Assuming you have not added any other script paths, you can add your script paths in the action controller init() method this way:
The system will look in the controller views scripts for your viewScript first, and then if it does not find it, it will look in /application/views/scripts.