Jump to content

Simple cms function, not working


Incomsys

Recommended Posts

Your heredoc syntax is wrong. It currently like this

               $somevar = <<<delimiter // some comment here

                     ... some text/html ...

               delimiter;

There should not be anything directly after the opening heardoc delimiter (remove the comment)

 

Also nothing should be before the closing heardoc delimiter (including tables/spaces). The closing delimiter should start from the first character of the next line.

 

Your heredoc syntax should be like this

               $somevar = <<<delimiter

                     ... some text/html ...

delimiter;

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.