Hello Michael,

Thank's a lot for your answer. I've just need some precisions:

>>> Model completion works in all controllers for me with the phpdoc in
the AppController. Maybe your controllers extend Controller and not
AppController.

No, my controllers extends AppController. e.g. :

[code]
class ArticlesController extends AppController {
        public $name = 'Articles';
}
[/code]

If I write this in my AppController class, the code completion doesn't
work in the controller "ArticlesController":
[code]
class AppController extends Controller {
  /**
   * @var Model
   */
    var Model
}
[/code]

Must I write the name of all my models with PHPDoc in AppController?


>>>>I use to create a PHP
project first and then use the import for that project to get the data
from SVN.

OK, I will test that.


>>>>t should be possible to extend the completion to the other stuff,
e.g. this works for the Session-Component.

Must I write the PHPDoc comment in all my controllers which are using
SessionComponent? Or I must write it in AppController too?

I hope my message is understandable...

Have a nice day !

Aurélien (avairet)



On 13 nov, 18:47, schneimi <[EMAIL PROTECTED]> wrote:
> Hi Avairet,
>
> > - the "schneimi"'s method for modelscompletionin controllers works
> > fine, but it's necessary to copy it in each controllers you create and
> > replace "model" by your model name... I've tried to put this in
> > AppController, but it doesn't work. Any ideas to addcompletionfor
> > all controllers in one place?
>
> Modelcompletionworks in all controllers for me with the phpdoc in
> the AppController. Maybe your controllers extend Controller and not
> AppController.
>
> > - this 2 methods doesn't work if I use Subclipse and check out a cake
> > app directory as an Eclipse project. In this case, there are no code
> >completion, even Php builtin functions! Any ideas why codecompletion
> > doesn't work with a SVN shared project?
>
> I also remember problems with SVN checkout as a project, it seems like
> it isn't handled as a PHP project that way. I use to create a PHP
> project first and then use the import for that project to get the data
> from SVN.
>
> > - and last, is it possible to take codecompletionfor "components'",
> > "behaviors", "elements" and so on?
>
> It should be possible to extend thecompletionto the other stuff,
> e.g. this works for the Session-Component:
>   /**
>    * @var SessionComponent
>    */
>   var $Session;
>
> -
> Michael
>
> On 13 Nov., 17:56, avairet <[EMAIL PROTECTED]> wrote:
>
> > Hi everybody!
>
> > Firstly, excuse me for my simple English...
>
> > Then I tell you my own experience with PDT/Cake CodeCompletion.
> > My config : Eclipse Europa 3.3 + PDT 1.0 + Cake 1.2 with advanced
> > install/config("Cake core", "app dir" and "webroot dir" in three
> > different paths) )
>
> > - the "voidstate" example is very cool for helpers methodscompletion
> > in view (file with $helper = new Helper())
>
> > - the "schneimi"'s method for modelscompletionin controllers works
> > fine, but it's necessary to copy it in each controllers you create and
> > replace "model" by your model name... I've tried to put this in
> > AppController, but it doesn't work. Any ideas to addcompletionfor
> > all controllers in one place?
>
> > - this 2 methods doesn't work if I use Subclipse and check out a cake
> > app directory as an Eclipse project. In this case, there are no code
> >completion, even Php builtin functions! Any ideas why codecompletion
> > doesn't work with a SVN shared project?
>
> > - and last, is it possible to take codecompletionfor "components'",
> > "behaviors", "elements" and so on?
>
> > Thank's for your kind attention and best regards!
>
> > Avairet
>
> > On 15 oct, 05:35, Mandy <[EMAIL PROTECTED]> wrote:
>
> > > I use Easy Eclipse for PHP. I created eclipse_helper.php, copied all
> > > of the above and pasted it in the file. Then placed the file in
> > > webroot folder, did a Project->Clean->Build (made sure .thtml files
> > > are opened by PHP editor).
>
> > > However, I still couldn't see codecompletionwhen I typed $html->
> > > (and then ctrl + space).
>
> > > ?
>
> >  > -Mandy.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to