Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8
This is the forum to discuss the Wrox book Professional CodeIgniter by Thomas Myer; ISBN: 9780470282458
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 10th, 2009, 03:54 PM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Views not displaying correctly

I've been stuck for a day or so on making the category and product views display. There are functions set in the controller for them, and each page has the appropriate page set in the view folder, but when I click on a link all I get is:
Not Found

The requested URL /cibook/welcome/cat/7 was not found on this server.


I've gone over everything I can think of multiple times to no avail. Everything seemed to work fine until about page 90 of the book.
Reply With Quote
  #2 (permalink)  
Old March 12th, 2009, 11:02 AM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I managed to fix my own problem. I changed my configuration to show index.php, and now everything shows correctly. I was using mod_rewrite, so there's still the issue of why that wasn't working correctly as I was using the rewrite rules recommended by the book, which are the same one's specified in the CodeIgniter manual, and had left the index config option blank as per the documentation in the config.php file.
Reply With Quote
  #3 (permalink)  
Old March 12th, 2009, 11:39 AM
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Try Searching Codeigniter Forums

I had a similar problem when hosting my sites with Lunarpages. I found a solution in the Codeigniter forum section. Others have had similar oddities like that with differenet hosting companies. My problem had to do with suPHP conflicts. To solve it I added this line to my index.php file:
Code:
$_SERVER['PATH_INFO'] = str_replace('?'.$_SERVER['QUERY_STRING'], '', $_SERVER['REQUEST_URI']);
And it workes now.
Reply With Quote
  #4 (permalink)  
Old March 16th, 2009, 10:53 AM
Wrox Author
 
Join Date: May 2008
Location: Austin, TX, USA.
Posts: 53
Thanks: 0
Thanked 5 Times in 5 Posts
Default

it looks like your structure (/cibook/welcome/whatever) is different from the standard one given in the book. Are you running multiple instances of CI apps?

Another thing to look at...I got an email from another reader recently in which XAMPP htaccess and CI htaccess were colliding, he had to rework the XAMPP setup to make htaccess work in CI.
__________________
Thomas Myer
Author, Professional CodeIgniter
http://www.tripledogs.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Views prashar SQL Language 1 December 13th, 2005 02:10 AM
converting Access 2000 views to Sql views matta Classic ASP Professional 1 January 26th, 2005 03:37 PM
Variables in views richarda SQL Server 2000 9 December 23rd, 2004 12:29 PM
Views or not ?? stagedancer SQL Server 2000 1 November 24th, 2004 03:08 PM
Views SAM GORDON SQL Server 2000 5 July 19th, 2003 09:14 AM



All times are GMT -4. The time now is 12:59 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.