cakephp3-netbeans icon indicating copy to clipboard operation
cakephp3-netbeans copied to clipboard

Netbeans error in editor

Open r-da opened this issue 8 years ago • 5 comments

Hello, I'm not sure this is a problem with Cakephp3 plugin, but I have the following issue. If i have javascript code in a ctp file, marked with cakephp Html->scriptStart and scriptEnd, I have errors highlighted by netbeans (see attached screenshot). Is there a way to avoid this and convince netbeans to parse the javascript correctly?

netbeans-bug

r-da avatar Jan 13 '17 10:01 r-da

Unfortunately, it is not a bug. It is not a correct syntax of PHP. So the IDE recognizes it as an error.

But I may be able to improve it a bit. I cannot promise to do it soon, sorry.

junichi11 avatar Jan 13 '17 21:01 junichi11

So this means that it's not possible to instruct Netbeans that Html->scriptStart and scriptEnd are delimiters for javascript?

r-da avatar Jan 16 '17 09:01 r-da

So this means that it's not possible to instruct Netbeans that Html->scriptStart and scriptEnd are delimiters for javascript?

Yes, users cannot do it by default. But as I wrote the above, maybe, it can be improved. (Sorry if it is not possible)

junichi11 avatar Jan 17 '17 05:01 junichi11

You can resolve that with this trick, at the end of the file put that

<?= $this->Html->scriptStart(['block' => true]); ?>
/*<script>*/
[insert you code here]
<?= $this->Html->scriptEnd(); ?>

acomerlatto avatar Jan 19 '18 14:01 acomerlatto

Hi Danilo, The error message is very clear. You don't have php installed or php is not in the PATH.

Have a nice day

Il lun 7 mag 2018, 16:04 Danilo Batista de Queiroz [email protected] ha scritto:

I don't know what I did wrong. The version of my CakePHP is 3.6 and NetBeans IDE 8.2 The server don't start up. Can you help me?

[image: project] https://user-images.githubusercontent.com/32627919/39705607-47b07210-51e5-11e8-837b-3e55ebb2a701.PNG [image: output] https://user-images.githubusercontent.com/32627919/39705611-4b7b84d4-51e5-11e8-9817-78a2cbfbbb0e.PNG [image: configurations] https://user-images.githubusercontent.com/32627919/39705616-4d6fa400-51e5-11e8-9065-23cf86344f09.PNG

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/junichi11/cakephp3-netbeans/issues/54#issuecomment-387075024, or mute the thread https://github.com/notifications/unsubscribe-auth/AX5MOPHt-4yHZOMbglfuMQwdnZPqCMcXks5twFRQgaJpZM4LitT7 .

r-da avatar May 08 '18 07:05 r-da