p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 (http://p2p.wrox.com/forumdisplay.php?f=152)
-   -   Chapter 5 - factoryTest.php (http://p2p.wrox.com/showthread.php?t=83876)

AwakenedYes June 3rd, 2011 01:14 PM

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.


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

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

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