Redirect inside Constructor NOT WORKING |
(10-06-2019, 08:42 PM)kilishan Wrote: Redirect now returns a class instead of just setting headers. You cannot return an instance of another class while instantiating a different class in PHP. Thank you Sir ! I am sooo used to use CI3 that I forgot a little bit about the PHP itself... I am very eager to use Myth Auth in my projects... But, meanwhile, I am using Ben“s Ion Auth 4 ... The point is that I want to make my code cleaner and I am checking for login in the constructor or in the baseController. Do you have any tips about the best way of doing it ? I am doing like this: PHP Code: public function checkLoggedIn() |
Welcome Guest, Not a member yet? Register Sign In |