• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Hooks for login prompt

#1
[eluser]macleodjb[/eluser]
I was reading up on hooks. I was curious how can i have it so i can force the user to login under certain controllers? For instance i only want them to login if they are under the control panel or view controller?

#2
[eluser]TheFuzzy0ne[/eluser]
I wouldn't use hooks for that. I would probably just create a library which extends the controller class, and have my controllers extend that.

#3
[eluser]jedd[/eluser]
[quote author="macleodjb" date="1239336673"]I was reading up on hooks. I was curious how can i have it so i can force the user to login under certain controllers? For instance i only want them to login if they are under the control panel or view controller?[/quote]

I just read your [url="http://ellislab.com/codeigniter/user-guide/general/creating_libraries.html"]recent thread[/url] on converting an existing site .. and feel I should really clarify what you're trying to do in this instance.

Is there a particular reason you must use hooks?

What precisely are you wanting to achieve, and what other limitations do you have about the answer you're looking for?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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