CodeIgniter Forums
CL_Auth not working in CI 1.6.3 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CL_Auth not working in CI 1.6.3 (/showthread.php?tid=16597)



CL_Auth not working in CI 1.6.3 - El Forum - 03-11-2009

[eluser]hackersapien[/eluser]
I've been looking for an authentication library for CI and so recently downloaded and setup CL Auth http://www.jasonashdown.co.uk/cl_auth_doc/ I followed the installation instructions but when I tried to refresh my app I got the following error You have CL_Auth turned off. I'm using CI 1.6.3 and the documentation is minimal at best. Anybody out there managed to get it to work?


CL_Auth not working in CI 1.6.3 - El Forum - 03-11-2009

[eluser]TheFuzzy0ne[/eluser]
You need to activate it via your configuration file. In ./system/application/config/config.php, add:

Code:
$config['CL_Auth'] = TRUE;



CL_Auth not working in CI 1.6.3 - El Forum - 03-12-2009

[eluser]hackersapien[/eluser]
I added that to my config file, that fixed the error, I then added
Code:
$this->cl_auth->login_form();
to one of controllers and this is the error I got:
Code:
An Error Was Encountered

Unable to load the requested file: .php

I thought may be this was a view problem,but all the views are present. Any idea why this is happening?


CL_Auth not working in CI 1.6.3 - El Forum - 03-12-2009

[eluser]TheFuzzy0ne[/eluser]
Again, it's a configuration issue. I'd suggest you check out the documentation for the library.


CL_Auth not working in CI 1.6.3 - El Forum - 03-12-2009

[eluser]hackersapien[/eluser]
Fixed it, I hadn't added all the CL configurations to the config file, the poor documentation doesn't help but its all good now. Thanks for your help.