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 January 10th, 2010, 07:53 AM
Registered User
 
Join Date: Jan 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stuck on chapter 4 page 87.

on this chapter the book is telling me to change my index () controller from
Code:
function index(){
$data['title'] = " Welcome to Claudia Kids";
$data['navlist'] = $this->MCats->getCategoriesNav();
$data['mainf'] = $this->MProducts->getMainFeature();
$skip = $data['mainf']['id'];
$data['sidef'] = "$this->MProducts->getRandomProducts(3,$skip);
$data['main'] = 'home';
$this->load->vars($data);
$this->load->view('template');
}
to this

Code:
$home['mainf'] = $this->MProducts->getMainFeature();
$skip = $data['mainf']['id'];
$data['sidef'] = "$this->MProducts->getRandomProducts(3,$skip);
$data['main'] = $this->load->view('home',$home,true);
My problem is I have not created the home.php view so why should I change the index controller on that section. So if anyone who has passed chapter 4 can help me with how they index controller has been for this chapter I will be gratefull.
 
Old January 10th, 2010, 11:26 AM
Registered User
 
Join Date: Jan 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default This is a documented mistake.

Hi,

You don't need to make any changes to your controller, the code on this page is only to serve as a reminder.

However it is incorrect and this mistake is shown in the online errata :http://www.wrox.com/WileyCDA/WroxTit...Cd-ERRATA.html

Bob
 
Old January 10th, 2010, 12:34 PM
Registered User
 
Join Date: Jan 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks I forgot all about looking at the errata section.





Similar Threads
Thread Thread Starter Forum Replies Last Post
AddModalErrors and AllCountries page 87 View Data Dictionary barnettrob BOOK: Professional ASP.NET MVC 1.0 ISBN: 978-0-470-38461-9 8 October 21st, 2009 08:07 PM
Page 87 Golarin BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 3 September 27th, 2009 03:58 AM
Stuck in chapter 4 louisvillegeorge BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 2 June 17th, 2009 10:54 PM
Stuck on the first chapter flashster BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 September 1st, 2006 03:40 AM





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