recently, I have problem with creating template for Questions (and probably also for other modules). I would like to have expandable/collapsable part of it, which displays answer to question. The user should see answer when he cliks on the question. The code looks like this:
Code: Select all
{starth3ExpandCollapse id="clenstvi_ve_spolku" title="{$entry->question}"}
<ul>
<li>{$entry->answer}</li></ul>
{stopExpandCollapse}
. I found on the internet, that this problem is specific to PHP 5.2.0+ versions, what is my configuration. On PHP site, someone explained it like:Catchable fatal error: Object of class stdClass could not be converted to string in * on line *
.As of (at least) PHP 5.2, you can no longer convert an object to a string unless it has a __toString method. Converting an object without this method now gives the error:
PHP Catchable fatal error: Object of class could not be converted to string in on line
So, please, can you help me implement this method to appropriate object.
Thanks,
Milhaus