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 October 10th, 2009, 07:58 PM
Registered User
 
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Where I wrong? File not found

Hi guys,
I have this problem:
the book code installed in my localhost load only the home page, with all graphics but not the thumb and image product..and when I click every link, the url is correct, but the browser say:
File not found
The requested URL /claudia_kids/welcome/product/3 ( <-example) was not found on this server.

I have put book code in localhost/claudia_kids, i have change config url in:
$config['base_url']= "http://localhost/claudia_kids/";
and I left untouched all all the other
Could be a problem with .htaccess?
Many thanks to whoever could help me
 
Old October 11th, 2009, 07:21 AM
Authorized User
 
Join Date: Sep 2009
Posts: 22
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Have you insert the data dummies yet?I don't have a problem with the default .htaccess and viewing the products.For viewing the thumbnails.You got to add base_url to display the thumbnails..In views/category you add base_url() like this

Code:
<img src='".base_url().$list['thumbnail']."' border='0' class='thumbnail'/>\n";
Hope it helps.. ^_^

regards
handoyo
 
Old October 30th, 2009, 08:19 AM
Registered User
 
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the exact same problem, from the home page, if I click on the Clothes link in the nav, I get a 404 on this page http://localhost/CodeIgniter_book/welcome/cat/7, I tried to remove the "welcome" from the url as my homepage url is http://localhost/CodeIgniter_book/ but nothing. I'm at page 91 of the book.
Can someone help me, I double checked everything and I don't understand what's wrong!

Thanks a lot in advance
 
Old November 1st, 2009, 05:39 AM
Authorized User
 
Join Date: Nov 2009
Posts: 26
Thanks: 3
Thanked 0 Times in 0 Posts
Smile Add the following codes

In order to solve image problem, go to the views/template.php, add the following in the header section.
Code:
<base href="<?=base_url();?>">
Then go to your mySQL or back-end welcome/verify and change the path to thumbnail and image by taking out the first / in front of image.

Regarding the URL problem, go to config/config.php and add the following.

Code:
$config['index_page'] = "index.php";
and make it sure your base_url in config is correct.

e.g.
Code:
$config['base_url'] = "http://127.0.0.1/codeigniter_shopping/";
Hope this will help.
 
Old November 2nd, 2009, 02:36 AM
Registered User
 
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey thanks it works, I was actually missing the $config['index_page'] = "index.php"; ...
I don't understand why it would make the homepage working but not the other ones without this line...

Thanks again!
 
Old November 2nd, 2009, 03:07 AM
Registered User
 
Join Date: Oct 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Now it's work to me too!
many many thanks to all!
I really appreciate your helps





Similar Threads
Thread Thread Starter Forum Replies Last Post
File or assembly name not found cbath ASP.NET 1.0 and 1.1 Basics 1 July 12th, 2006 08:43 AM
"File Not Found" rduncan1 Excel VBA 2 March 7th, 2006 12:17 AM
File or assemly name not found caser85 BOOK: ASP.NET Website Programming Problem-Design-Solution 6 August 20th, 2004 03:26 PM
file not found Tere Crystal Reports 0 February 10th, 2004 12:43 PM
File not found hosefo81 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 October 22nd, 2003 10:34 AM





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