Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialdeanhidri
1,040 PointsCreated $manufacturer doesn't output anything on echo $shirt::$manufacturer
Hi,
I'm stuck now. I created the public static $manufacturer
and passed a value to it. Then I created the public function getMaker()
which returns self::$manufacturer
.
If I try to echo that out with the examples from the video, it just gives me a blank page. Did I do anything wrong?
3 Answers
Brenda Krafft
18,036 PointsMy guess is that you've got a missing } or > or ; or something.
If you don't see it, try asking a second pair of eyes to match everything up.
You can also edit your post, and paste the code in. To keep it looking like code, indent each line with 4 spaces.
Andrew Rady
20,880 PointsCan you post your code in the forum? This will allows us to have a good look at what is going on. From your description Brenda is right, most likely a syntax error.
deanhidri
1,040 PointsGot it to work. Rewrote the class by with the things I've learned in the course and now it outputs the $manufacturer
as wanted. No blank page.