• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Classes in Helper files?

#2
[eluser]Yash[/eluser]
Just use model.

Create a function in a model. Check session or do whatever you want. like redirecting to login form if not logged and so on...

Now access this function in controller functions.

I like this way..You can decide your own.


Messages In This Thread
Using Classes in Helper files? - by El Forum - 07-31-2008, 09:58 AM
Using Classes in Helper files? - by El Forum - 07-31-2008, 10:46 AM
Using Classes in Helper files? - by El Forum - 07-31-2008, 10:50 AM
Using Classes in Helper files? - by El Forum - 07-31-2008, 10:52 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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