I seem to have a problem with the method mentioned above:
public function __toString()
{
?>
Some html code
Some more html code
<?=echo $this->content?>
Last of the html code
<?
return '';
}
I need it that in this method I can break PHP code, so I can better format and see the HTML code. But if I omit the return I get the exception:
__toString() must return a string value.
Any way i can manage without the return?