Points Challenge
|
Posted
#72406
(In Topic #15185)
|
|
|---|---|
|
Community saint |
The challenge refered to in Making an addon part 1While I see there is an evaluate method for the object defined I do not know if this evaluate method is meant to parse the set strings inside the object but if not then one issue would like be the use of single quote around line 5: it should be double quoted in order for $data to be parsed like so Code
$output.="<p>Some data: $data</p>";
othersie it could be written like so: Code
$output.='<p>Some data: '.$data.'</p>';
Dunno if that is what you are looking for but that is one thing that stood out to me first? |
|
Posted
|
|
|
ocStaff (admin) |
I wrote that so long ago, and nobody bothered contesting, I completely forgot about the challenge. The string concatenation/quote thing was an unintentional bug, but you alluded correctly to the real problem (running evaluate on a string, rather than a Tempcode object). If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
1 guests and 0 members have just viewed this: None
Control functions:







