thanks, The thing with using ** * @var ExampleBehavior */ var $Example
is that to access the Behavior methods I have to do : $this->Model- >ExampleBehavior->... when the model actually accesses the Behavior methods like : $this- >Model->... Do I make sense ? as for the helpers in view it was what I was doing already, was just wondering if it was possible with $this thomas On May 21, 5:05 pm, schneimi <[EMAIL PROTECTED]> wrote: > You already tried the following in your models or AppModel? It should > actually work, the var+phpdoc must just be visible where you want the > completion. > > /** > * @var ExampleBehavior > */ > var $Example > > For your second question, this is not possible because $this is > reserved and the view is known as view object not until runtime. But > you can have completion on every other variable in your views, just > create any PHP file in your webroot, and put in e.g.: $t = new View(); > $html = new HtmlHelper();.... > > regards, > > Michael > > On 21 Mai, 12:39, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > Hello all, > > > I'm using eclipse + PDT. > > > I was wondering if someone found a way to have code completion working > > for Model Behaviors > > > using the phpdoc trick to have completion on models works well : > > > /** > > [EMAIL PROTECTED] Category > > * > > */ > > var $Category > > > but this won't help when trying to have completion on a behavior, > > won't work in the model either as far as I know. > > > Since behaviors are dynamically attached I guess there is no way but I > > might be wrong (hopefully :) > > > thanks in advance > > > thomas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
