View Single Post
  #1 (permalink)  
Old 04-24-2008, 06:18 AM
Mark^Bastard Mark^Bastard is offline
Junior Member
 
Join Date: May 2007
Posts: 15
Default 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?
Reply With Quote