View Single Post
  #2 (permalink)  
Old 06-11-2008, 02:51 PM
Kalyse Kalyse is offline
Junior Member
 
Join Date: Jun 2008
Posts: 18
Default

No, your always going to have to have that atleast once, either in your controller or your view.
Remember your view scripts are within the scope of the controller, so you could set it in your controller init() to get it and save it to the $-view
but there is NO point at all.

If you do it by reference (which you should) then its just a benefit for not writing the extra line, but if you don't then you are just duplicating the data.
My translation file of 3MB would mean that an extra 6Mb is saved in RAM. Not worth it.

Overall, its not that big of a deal to just add the extra line is it?
Reply With Quote