Part of the EllisLab Network
   
 
Filters System Bug
Posted: 24 June 2007 01:38 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  165
Joined  08-22-2006

I’ve been using hooks for a long time now, but I’ve decided to try the Filters System because it seems to be a better approach to accomplish some basic routines.

Unfortunately there is a bug in the system, when you try to apply a filter to a controller placed withing a directory it won’t trigger. I went over the code and find out that the way it handles the matches is where the problem resides, it is exploding the match by the ’/’ on in, so CI thinks it is a class instead of a directory.

As an example, if i want to apply a filter to “admin/login” where admin is the directory and login the class name it won’t work.

Any ideas on a better implementation of it?

 Signature 

Don’t argue with an idiot, people watching may not be able to tell the difference.


marcoss
http://defmay.com
http://fenix.st

Profile
 
 
Posted: 27 June 2007 11:54 AM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  173
Joined  08-11-2006

I think the filters system just got out of date.


Read post #43 of this page

 Signature 

Ruby on Rails migrations in codeigniter

Profile
 
 
Posted: 27 June 2007 01:03 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  165
Joined  08-22-2006
barbazul - 27 June 2007 11:54 AM

I think the filters system just got out of date.


Read post #43 of this page

Too bad it is not active developed anymore, it was a good idea, I’ll try to fix the sub folders issue and post it back.

Anyway, thanks for the notice, seems like I’ve done a bad search.

 Signature 

Don’t argue with an idiot, people watching may not be able to tell the difference.


marcoss
http://defmay.com
http://fenix.st

Profile
 
 
Posted: 27 June 2007 05:39 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  173
Joined  08-11-2006

Look at the previous posts in the thread. It seems as if Seele is considering a new release soon

Hope he does

 Signature 

Ruby on Rails migrations in codeigniter

Profile
 
 
Posted: 27 June 2007 11:35 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  173
Joined  08-11-2006

I’m posting a quick fix for this “bug”

I overrided the _matches function to consider one level of subfolders within controllers

http://codeigniter.com/forums/viewthread/46009/P30/

 Signature 

Ruby on Rails migrations in codeigniter

Profile
 
 
Posted: 28 June 2007 12:11 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  165
Joined  08-22-2006
barbazul - 27 June 2007 11:35 PM

I’m posting a quick fix for this “bug”

I overrided the _matches function to consider one level of subfolders within controllers

http://codeigniter.com/forums/viewthread/46009/P30/

Great! Eventhough it uses a core function is a good patch until the system itself gets updated. Thanks wink

 Signature 

Don’t argue with an idiot, people watching may not be able to tell the difference.


marcoss
http://defmay.com
http://fenix.st

Profile
 
 
   
 
 
‹‹ Escaping queries      routing and controllers ››
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 719, on June 06, 2008 10:16 AM
Total Registered Members: 64459 Total Logged-in Users: 24
Total Topics: 80973 Total Anonymous Users: 1
Total Replies: 435723 Total Guests: 233
Total Posts: 516696    
Members ( View Memberlist )