Part of the EllisLab Network
   
 
query in CI 1.5.0.1
Posted: 10 November 2006 06:56 AM   [ Ignore ]  
Summer Student
Total Posts:  23
Joined  08-10-2006

Simple custom queries make router fail.

Situation:
- CodeIgniter 1.5.0.1 out of the zip
- PHP 4.4.0, Apache2, Linux
- GET request with simple query part e.g.: happy=test

$config[‘base_url’]  = “http://mydomain/CodeIgniter_1_5_test/”;
$config[‘uri_protocol’]  = “AUTO”;
$config[‘index_page’] = “index.php”;

http://mydomain/CodeIgniter_1_5_test/index.php?happy=yes OR
http://mydomain/CodeIgniter_1_5_test/?happy=yes OR
http://mydomain/CodeIgniter_1_5_test?happy=yes OR even
http://mydomain/CodeIgniter_1_5_test?happy OR
http://mydomain/CodeIgniter_1_5_test/index.php?happy
—-> same error:
404 Page Not Found
The page you requested was not found.

Setting the following doesn’t help
$config[‘enable_query_strings’] = TRUE;

- The same error when using .htaccess as described at http://www.codeigniter.com/user_guide/general/urls.html,
$config[‘index_page’] = “”; and http://mydomain/CodeIgniter_1_5_test/?happy=yes

However, in some situations, more complex queries work, while other queries (as above) don’t. E.g. in my application it’s
http://domain/controller/action?orderby=expire_on&order_direction=asc

Would you developers please look at this. Some tests could help as well.

Profile
 
 
   
 
 
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: 64453 Total Logged-in Users: 24
Total Topics: 80958 Total Anonymous Users: 0
Total Replies: 435679 Total Guests: 194
Total Posts: 516637    
Members ( View Memberlist )