CodeIgniter Forums
dx_auth: 404 error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: dx_auth: 404 error (/showthread.php?tid=50099)



dx_auth: 404 error - El Forum - 03-14-2012

[eluser]leatherback[/eluser]
Hi All,

for days now I have been trying to get the dx_auth module to work, to no avail. I keep getting 404 pages from CI whenever I try to get to the auth pages. I installed the version with examples and am now trying to get to one of them.

When using the highest debugging log level, this is where it stops:

[snip]
DEBUG - 2012-03-08 22:21:17—> Loader Class Initialized
DEBUG - 2012-03-08 22:21:17—> Config file loaded: application/config/auth.php
DEBUG - 2012-03-08 22:21:17—> Controller Class Initialized
ERROR - 2012-03-08 22:21:17—> 404 Page Not Found—>

I am calling:
http://localhost/vraagje/index.php/auth/login/

How should I proceed trying to debug this?


dx_auth: 404 error - El Forum - 03-14-2012

[eluser]kerell78us[/eluser]
[quote author="leatherback" date="1331732009"]Hi All,

for days now I have been trying to get the dx_auth module to work, to no avail. I keep getting 404 pages from CI whenever I try to get to the auth pages. I installed the version with examples and am now trying to get to one of them.

When using the highest debugging log level, this is where it stops:

[snip]
DEBUG - 2012-03-08 22:21:17—> Loader Class Initialized
DEBUG - 2012-03-08 22:21:17—> Config file loaded: application/config/auth.php
DEBUG - 2012-03-08 22:21:17—> Controller Class Initialized
ERROR - 2012-03-08 22:21:17—> 404 Page Not Found—>

I am calling:
http://localhost/vraagje/index.php/auth/login/

How should I proceed trying to debug this?[/quote]


Last I checked Dx_Auth was compatible ci CI 1.72. However, if you are attempting to use the library with CI ver2.0, try the following:-

Controllers should be:

Code:
<?php

class Foo extends CI_Controller
{

    public function __construct() {
             parent::__construct();
    }

}

?>


Model should be:

Code:
<?php

class Foo_Model extends CI_Model
{

    public function __construct() {
             parent::__construct();
    }

}

?>


Hopes this helps
Cheers


dx_auth: 404 error - El Forum - 04-09-2012

[eluser]leatherback[/eluser]
[quote author="kerell78us" date="1331745692"]
Last I checked Dx_Auth was compatible ci CI 1.72. However, if you are attempting to use the library with CI ver2.0, try the following:-

{snip}

Hopes this helps
Cheers[/quote]

That helped a lot! Not a good idea to try and figure out the framework using examples from an outdated version. Now it makes sense I could not make snese of what was going wrong. Will try something else; Hope to make better progress with a newer auth module.

Smile