|
I THINK it should return AMethod() !! hmmm you made me feel shame :$, so what's the right thing??
|
||||||||||||
|
Site Admin
|
It would be correct to say that "thing is undefined"
From the code, it absolutely unclear which object instance is in $this->Wood, and even whether it's object instance at all, it's not clear either. To understand what is in $this->Wood, a developer (like you or me) would need to see an assignment for $this->Wood or an appropriately formed phpdoc definition (typehint) for this property. Same goes to the IDE. Check posts on this thread submitted earlier and screenshots with shown red rectangles in particular. It's how it works. |
||||||||||||
_________________ The PHP IDE team |
|
Did this functionality ever make it in? This would be awesome, I have a lot of places I would love to use this type hinting. |
||||||||||||||
|
|
this works great:
/** @var Events $the_events*/ $the_events=Factory::inst("Events"); but would it be possible to have this working? $the_events=Factory::inst("Events");/** @var Events $the_events*/ It would make the code more compact and still keep it readable. Thanks. |
||||||||||||
|
|
Hello,
I just registered on this site to make this reply so others like me who need to get Code Completion aka Code Insight to work with CodeIgniter in PhpED, don't waste their time. This will make it possible for you to get access to for example $this->load->view('view_blog', $data) etc. Just copy paste the code below in your Controller class file above the class declaration, like this: <?php /** * @property CI_Loader $load * @property CI_Form_validation $form_validation * @property CI_Input $input * @property CI_Email $email * @property CI_DB_active_record $db * @property CI_DB_forge $dbforge */ class Blog extends Controller { } I don't understand why such important code is so hard to get by... same issue is with debugging CI. I know there is blog post here but come on one shouldn't need to dig in Internet and read a long blog thread to be able to maybe get it to work after a lot of tweaking. I don't intend to sound negative but to make positive criticism to improve PhpED IDE. CodeIgniter is now one of the popular and growing frameworks out there and every serious PHP IDE in the market specially the commercials ones, should implement such basic features as Code Completion and Debugging for CodeIgniter. I was even considering to suggest a change of IDE for our company while looking for an IDE that could handle these features for CodeIgniter. |
||||||||||||
|
Custom code-completion rules |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by