Uncaught exception in module : Call to a member function redirect() on unknown