Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7579567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:42:39+00:00 2026-05-30T17:42:39+00:00

Someone recommended I use code completion and I realized that while my IDE has

  • 0

Someone recommended I “use code completion” and I realized that while my IDE has code completion, it doesn’t recognize the large majority of methods and variables inherited from CakePHP’s framework, most notably the Helper methods for views. I’m using PhpED but it seems like it’s code completion is supposed to work just as it does in eclipse and other editors.

I followed this advice to no avail; I created a helpers.php file with definitions of all the helpers and included it in the project but the code completion still doesn’t work with the Helpers.

I think part of the problem is Mark Story’s post is from an old version of cake (I am on Cake 1.3) so I updated the definitions of the Helpers to look like this:

$this->Form = new FormHelper();

But there’s still no code completion for any of the views. Is there any way to make this work? In addition to the Helpers I’d really like completion for functions like Model->find() but those don’t work either.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:42:40+00:00Added an answer on May 30, 2026 at 5:42 pm

    For PhpED you have to do the following to enable Autocompletion for $this.

    Lets say you want to use $this in a Controller for something like this

    $this->Project->Country->getCountryName($countryId)

    First add this PhpDoc tag before the class definition

    /**
    * @property-read Project $Project
    */
    class ProjectsController....
    

    Now typing $this->Project should work as intended.
    Next up is the Project model class.

    In here add the following code, again before the class definition

    /**
    * @property-read Country $Country
    */
    class Project extends AppModel
    

    Now $this->Project->Country->getCountryName($countryId) works. The method is not 100% as i would like it, as PhpEDs Autocompletion sorts alphabetically, so any class starting with A or B will be shown before the methods of the Country mode.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In one of my project someone has recommended me to use extjs. I know
Can someone recommend a simple c# code generator. I just looking something with methods
I have the following code example to use an object that receives the action
I have a class that has many settable/gettable attributes. I'd like to use reflection
Could someone recommend me of a good Tween library for AS3 (for use with
Someone on here recently recommended BWToolkit, and it really impressed me, so I started
Can someone advice which is the recommended version of Java Runtime Environment for Windows
Can someone recommend a secure FTP implementation that works well on Windows Server 2000?
Can someone recommend a payment gateway that allows incremental (irregularly recurring) charges to the
Can someone recommend a reliable HTML tree control that also supports tree manipulation? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.