Wrox Programmer Forums
|
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 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 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





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 08:36 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 10:57 AM





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