Accessing controller in advanced module
Hi,
I am just trying to set up tank_auth as an advanced module to set up user authentication, at the moment I have just directly ported over the tank_auth folder into a module folder.
All appears to be working so far but if I try and access the welcome.php controller which comes with the download to show when logged in I get a 404 error.
I know the main controller must be named after the module like so : fuel/modules/my_module/controllers/my_module.php
In my case I have : fuel/modules/auth/controllers/auth.php
However accessing fuel/modules/auth/controllers/welcome.php does not work.
Any suggestions?
Thanks
Comments
Yes it is. It is supposed to re-direct to that page when successfully logged in.
It is worth adding that I had to amend the auth.php so that each view was loading properly.. where a line reads :$this->load->view('auth/....) I have amended it to $this->load->view('auth/auth/...)
Thanks.
1. moved everything from the "tank_auth/application" directory into the folder "fuel/modules/auth"
2. renamed all thew view file paths like you did above
3. registered at auth/register and confirmed my registration with the email
4. logged in, in which case it redirected me back to the homepage.
5. browsed to auth/welcome
Is there something in those steps that may help with your troubles?
standby...
Thanks for your help.
Boosh
I get the error: "An Error Was Encountered
The configuration file development/tank_auth.php and tank_auth.php do not exist."
Thanks
$this->ci->load->module_config('auth', 'tank_auth', TRUE);
Regards
boosh