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 trialsimhub
26,544 PointsThere is a typo on ListingPremium.php line:35 - In side the (Project File zip / extending_oop_s1v8.zip)
Hi Alena Holligan ,
I get this error:
Uncaught Error: Undefined class constant 'allowed_tags' in .../classes/ListingPremium.php:35
i guess this:
public function setDescription($value)
{
$this->description = trim(strip_tags($value, self::allowed_tags));
}
was meant to be:
public function setDescription($value)
{
$this->description = trim(strip_tags($value, self::$allowed_tags)); // just missing $ on allowed_tags
}
1 Answer
Alena Holligan
Treehouse TeacherThanks! You're right! Updated now :)
simhub
26,544 Pointssimhub
26,544 Pointsyou're welcome, great course :)