View and Controller interfaction
I have come across a need to do either of the following in a view script.
1 - Call a function in the Controller that called the view.
2 - Create a function inside the view file.
Are either of these good practise? Is 1 even possible?
Do I need to create a helper or something like that instead? It's specific to the view so a helper may be over the top. I guess creating a function in the view script is not ideal but probably is the most practical thing to do?
|