about PHP special string usage <<<EOT

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
netenken1
User
Posts: 64

about PHP special string usage <<<EOT

Post by netenken1 »

sometimes we want to use PHP sepcial string usage above

echo <<<EOT
.
.
.
EOT;

but, end of EOT must be start with first col..... but PHPMaker code editor will automatically indent the "EOT;"

this behavior will cuz php compiler error...

are there any idea solve this problem ??


Webmaster
User
Posts: 9427

Post by Webmaster »

Where did you use it? In server event?


netenken1
User
Posts: 64

Post by netenken1 »

yeh, in Server Event..

I must manually correct code after generated..


Webmaster
User
Posts: 9427

Post by Webmaster »

Server events are methods in a class, so they will be indented during generation. For the time being there is no way to remove the tab characters, avoid using it if possible, or fix it manually after generation as you do. We'll see if we can improve in future versions.


netenken1
User
Posts: 64

Post by netenken1 »

ok, I see , this really a strange situation...
It really becuz PHP <<< usage is really to strange


Post Reply