Wrox Programmer Forums
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 10th, 2009, 02: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.
Old March 12th, 2009, 10:02 AM
Registered User
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

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.
Old March 12th, 2009, 10:39 AM
Registered User
Join Date: Aug 2008
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:
$_SERVER['PATH_INFO'] = str_replace('?'.$_SERVER['QUERY_STRING'], '', $_SERVER['REQUEST_URI']);
And it workes now.
Old March 16th, 2009, 09:53 AM
Wrox Author
Join Date: May 2008
Posts: 53
Thanks: 0
Thanked 5 Times in 5 Posts

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

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 08:14 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.