Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1
This is the forum to discuss the Wrox book Professional PHP5 by Ed Lecky-Thompson, Heow Eide-Goodman, Steven D. Nowicki, Alec Cove; ISBN: 9780764572821
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 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 June 3rd, 2011, 01:14 PM
Registered User
 
Join Date: Jun 2011
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 5 - factoryTest.php

I am attempting to get the result "Bob Smith is enrolled in CS101" as suggested,
but I am getting "...is not enrolled..."!

Having checked the errata (which seems incomplete!) and changed _loadCourses from 'Collection' to 'CourseCollection' as parameter type in class.Student.php, I still get "not enrolled" even when in class.StudentFactory.php - getCoursesForStudent I can echo out exactly the three correct courses to the web page.

Any suggestions greatly appreciated.

Thanks

Whoops - error found! Forgot to allocate the member variables - so, forget this

Last edited by AwakenedYes; June 6th, 2011 at 09:14 PM. Reason: Simple typo
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
Chapter 5: justification.php DTackett BOOK: Beginning PHP 5.3 0 October 7th, 2010 10:48 PM
Chapter 3 - PHP fixxxer125 BOOK: CSS Instant Results 2 October 18th, 2007 02:14 PM
chapter 10 Emailing with php - firstmail.php vijdev BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 July 19th, 2007 01:12 AM
PHP 4 chapter 15 angelic_scars BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 November 29th, 2006 07:36 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 09:57 AM



All times are GMT -4. The time now is 09:43 AM.


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