I was trying to add Element in cakephp template page.
Documentation about Element in cakephp 3.0 says echo must be used.
echo $this->element('helloworld');
I follow documentation, but my website returns this error.
Error: syntax error, unexpected 'echo' (T_ECHO)
When I don't use echo, it works fine. I tried directly:
$this->element('helloworld');
someone have any explanation about this error ? and where is my error ?