NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code completion problems with mixed PHP/HTML code


Joined: 03 Mar 2008
Posts: 7
Reply with quote
I am trying to make Code Completion work in CakePHP views.

With this snippet i can associate $this to a View, thus making $this->Form-> codecompletion work as expected.

Code:
<?php
/**
* @var View $this
*/
?>
<script>
    jQuery(function($){
        $(".peKenBurns").peKenburnsSlider()
    })
</script>
<?php
    echo $this->Form-> // (Code Completion works)
?>


But if i insert a line with mixed HTML and PHP code before the "Code Completion works" line, the result
is that code completion stops working.

Code:

<?php
/**
* @var View $this
*/
?>
<script>
    jQuery(function($){
        $(".peKenBurns").peKenburnsSlider()
    })
</script>
<div class="type_<?php echo $project['ProjectType']['name']; ?>">
<?php
    echo $this->Form-> (Code Completion stops working)
?>


I would expect PHPEd to correctly use the line @var View $this for codecompletion, but that doesnt happen.

Any chance this behavior can be fixed ?


Regards,
Bo Sorensen
View user's profileFind all posts by sharkenSend private message
Update


Joined: 03 Mar 2008
Posts: 7
Reply with quote
The tests above were carried out with PHPEd 8.0

But with PHPEd 8.1 build 8107 the above works as intended, so im very happy. Now
CakePHP views can benefit from codecompletion as well.

Smile
View user's profileFind all posts by sharkenSend private message
Code completion problems with mixed PHP/HTML code
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic