Welcome Guest, Not a member yet? Register   Sign In
Community Auth usage
#1
Sad 

Hi everybody,

I'm trying to use community auth variables in a CI_Controller, i can't extend my controller from MY_Controller because it causes an error in my app, if it extend from MY_Controller i only get a blank page. So, how to use those variables in a CI_Controller?

Thank you.
Reply
#2

(This post was last modified: 02-22-2016, 10:19 PM by skunkbad.)

Do you already have a MY_Controller or some other base controller? Do your controllers normally extend CI_Controller?

Alternatively, you could copy the methods that are in Auth_Controller, and put them in your base controller. You just need access to the full set of those methods, and CI and Community Auth won't really care where they are.

Also, sorry it took so long to respond. I don't know why I didn't see this here earlier.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB