Part of the EllisLab Network
   
2 of 11
2
The Easiest Authentication Library for CodeIgniter just got easier.
Posted: 02 May 2009 12:55 PM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  26
Joined  03-15-2009

Installed the new Auth.php and I can’t see any other errors for now. Thanks!!! Another question, is the Dashboard view supposed to be empty? All I see is ‘This is the admin section.’.

Profile
 
 
Posted: 02 May 2009 01:00 PM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  349
Joined  05-04-2008
Otaku Coder - 02 May 2009 12:55 PM

Installed the new Auth.php and I can’t see any other errors for now. Thanks!!! Another question, is the Dashboard view supposed to be empty? All I see is ‘This is the admin section.’.

No worries.

The dashboard should say “welcome $username” where $username is the username of the user. “This is the admin section” was in the old admin controller, have you updated to the new admin controller? There are 2 now, in a directory controllers/admin/.

Thanks.

 Signature 

[ Adam Griffiths - Shropshire Based Web Developer ]
[ The Authentication Library User Guide ]
[ Programmers Voice - PHP and CodeIgniter articles, tutorials and screencasts. ]
[ Follow me on Twitter ]

Profile
 
 
Posted: 02 May 2009 01:19 PM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  26
Joined  03-15-2009
Adam Griffiths - 02 May 2009 01:00 PM

The dashboard should say “welcome $username” where $username is the username of the user. “This is the admin section” was in the old admin controller, have you updated to the new admin controller? There are 2 now, in a directory controllers/admin/.

Thanks.

I have updated to the new admin controller and I can’t see anything other than ‘This is the admin section’.

Profile
 
 
Posted: 03 May 2009 12:40 PM   [ Ignore ]   [ # 14 ]  
Grad Student
Avatar
Rank
Total Posts:  55
Joined  01-09-2009

I’m getting the same thing: “This is the admin section”

Profile
 
 
Posted: 03 May 2009 12:56 PM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  349
Joined  05-04-2008

I found the problem. I deleted these files locally but they were still in the github repo, even after several commits. I have removed the older files from the repo.

I removed:

controllers/admin.php (path changed)
views/auth/login.php (path changed)
views/auth/logout.php (path changed)
views/auth/reg_success.php (path changed)
views/auth/register.php (path changed)

all .sql files except dump.sql.

So you can either delete the files you don’t need locally or grab them from the repo again.


Thanks.

 Signature 

[ Adam Griffiths - Shropshire Based Web Developer ]
[ The Authentication Library User Guide ]
[ Programmers Voice - PHP and CodeIgniter articles, tutorials and screencasts. ]
[ Follow me on Twitter ]

Profile
 
 
Posted: 03 May 2009 01:13 PM   [ Ignore ]   [ # 16 ]  
Grad Student
Avatar
Rank
Total Posts:  55
Joined  01-09-2009

Thanks Adam. I can’t seem to get the package via the “download” button on git. Do you have a direct link?

Profile
 
 
Posted: 03 May 2009 01:19 PM   [ Ignore ]   [ # 17 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  349
Joined  05-04-2008

Download ZIP

Thanks.

 Signature 

[ Adam Griffiths - Shropshire Based Web Developer ]
[ The Authentication Library User Guide ]
[ Programmers Voice - PHP and CodeIgniter articles, tutorials and screencasts. ]
[ Follow me on Twitter ]

Profile
 
 
Posted: 03 May 2009 02:19 PM   [ Ignore ]   [ # 18 ]  
Grad Student
Avatar
Rank
Total Posts:  55
Joined  01-09-2009

Thanks, perfect.

One thing I noticed. Should

$config['auth_login'] = 'admin/';
be
$config['auth_login'] = 'admin/dashboard/';

?

Profile
 
 
Posted: 03 May 2009 02:33 PM   [ Ignore ]   [ # 19 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  349
Joined  05-04-2008

Yes it should, I fixed it and it’s now in the repo.

Thanks.

 Signature 

[ Adam Griffiths - Shropshire Based Web Developer ]
[ The Authentication Library User Guide ]
[ Programmers Voice - PHP and CodeIgniter articles, tutorials and screencasts. ]
[ Follow me on Twitter ]

Profile
 
 
Posted: 03 May 2009 04:22 PM   [ Ignore ]   [ # 20 ]  
Summer Student
Total Posts:  3
Joined  05-03-2009

Hi Adam

This looks really good.

However, I am very new to CI and I am having a problem.

I have uploaded all of the files but I am getting this error.

An Error Was Encountered
Unable to load the requested class: auth

Any help would be appreciated

thanks in advance
Aaron

Profile
 
 
   
2 of 11
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120562 Total Logged-in Users: 32
Total Topics: 126613 Total Anonymous Users: 1
Total Replies: 665591 Total Guests: 301
Total Posts: 792204    
Members ( View Memberlist )