how to set up modules

#1
[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.

Is there something I need to do to get CI to find the config settings? I have added a file auth.php in the config folder.

When I set error reporting to a max, I get this:


DEBUG - 2012-03-07 20:38:04 --> Config Class Initialized
DEBUG - 2012-03-07 20:38:04 --> Hooks Class Initialized
DEBUG - 2012-03-07 20:38:04 --> Utf8 Class Initialized
DEBUG - 2012-03-07 20:38:04 --> UTF-8 Support Enabled
DEBUG - 2012-03-07 20:38:04 --> URI Class Initialized
DEBUG - 2012-03-07 20:38:04 --> Router Class Initialized
DEBUG - 2012-03-07 20:38:04 --> Output Class Initialized
DEBUG - 2012-03-07 20:38:04 --> Security Class Initialized
DEBUG - 2012-03-07 20:38:04 --> Input Class Initialized
DEBUG - 2012-03-07 20:38:04 --> Global POST and COOKIE data sanitized
DEBUG - 2012-03-07 20:38:04 --> Language Class Initialized
DEBUG - 2012-03-07 20:38:04 --> Loader Class Initialized
DEBUG - 2012-03-07 20:38:04 --> Controller Class Initialized
ERROR - 2012-03-07 20:38:04 --> 404 Page Not Found -->


Anybpdy willing to lend me a hand? I am completely new to CI and having a hard time getting around the concept / setup. [slightly frustrated here]

#2
[eluser]InsiteFX[/eluser]
Did you load the config file?

#3
[eluser]leatherback[/eluser]
I have been trying to find out HOW to load this config file. So.. Probably not..

#4
[eluser]InsiteFX[/eluser]
You can autoload it if you want in ./application/config/autoload.php

Or in code:
Code:
$this->config->load('filename');

#5
[eluser]leatherback[/eluser]
OK, thanks. When I get home tonight I will give that a try. Is there a naming convention for the config files? Somehow the CI manual is not clear on this. (As far as I find anything clear in the manual, but that's because I can't get it to work, I assume)

#6
[eluser]leatherback[/eluser]
Hm.. In the .applications/config/autoload.php the setting for autoloading config does not seem to help either.

I tried:
$autoload['config'] = array("auth");

which results in loading the config file, but still the 404:

[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?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.