Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| 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 Search this Thread Display Modes
  #1 (permalink)  
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.
Reply With Quote
  #2 (permalink)  
Old January 10th, 2010, 11:26 AM
Registered User
 
Join Date: Jan 2010
Location: Bristol, UK
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
Reply With Quote
  #3 (permalink)  
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
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



All times are GMT -4. The time now is 05:28 PM.


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