• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call BaseController custom function in view

If I were doing this, I'd add it to a config file. It's not something that changes on a per-controller basis, I wouldn't think so a config setting makes the most sense. If you did need to change it on a per-controller basis, make it an argument to to helper, and pass it in when you call it in the view.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.