Hi,

for code completion in controllers, you can declare the vars and use
phpdoc in your app_controller.php:

 /**
  * @var CookieComponent
  */
 var $Cookie;

 /**
  * @var Yourmodel
  */
 var $Yourmodel;

For completion of helpers in views, you have to create an arbitrary
file in you app folder with some instantiated helpers (that are never
really instantiated because the file isn't included):

$html = new HtmlHelper();
$javascript = new JavascriptHelper();

Regards,

Michael

On 8 Jul., 00:33, saidbakr <[email protected]> wrote:
> Hello,
>
> I'd like to know how to use Eclipse and CakePHP combination to develop
> a web application. I don't care about svn or development in teamwork.
> I just need Eclipse to autocomplete all the code.
>
> For example: In the Blog Tutorial on Cakephp.org Create a Posts
> Controller section of the tutorial regards a code as follows:
> ...
> $this->set('posts', $this->Post->...
>
> The last Post does not posses any autocomplete list for its methods
> and properties. I like it to show such list and I don't know how to
> make Eclipse do it like it do for $this->.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to