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.
<?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.
<?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