As I try to use the auto-complete pop-up window in Netbeans on my PHP project, a huge swath of CakePHP methods tend to fill the window, and it makes finding what I need more difficult. (I'm not even using CakePHP in the project...)
Is there a way to prevent CakePHP which I am not using, or generically any other library, from showing up in that window?
Thanks.
Update:
Disabling cakephp did remove it from the autocomplete window, but it looks like my primary issue is with the fact that netbeans didn't seem to know what object I am referring to in these cases (because it is a global/defined elsewhere)
When it knows the exact class it provides a proper list of methods to choose from. There seems to be a "red dot" graphic beside methods related to the object, and this "thought bubble" type graphic beside ones that are just grabbed from all libraries netbeans knows about
The only way I have in my mind for this moment is to disable the CakePHP plugin. I have installed it separately so the path in my IDE is Tools -> Plugins -> User Installed Plugins (which is PHP CakePHP Framework).
Related
I have a small problem in that I want to work with CodeIgniter, but I love to work with Dreamweaver and Eclipse because of their powerful code-hinting features. However, I want to integrate CodeIgniter into my project too, and neither of these two IDEs provide code hinting for CodeIgniter. I have tried to use the steps given in this answer Setting up codeigniter in Dreamweaver CS 5.5, but even this is not helpful.
I want to know how to configure any of the IDEs to show code hints for CodeIgniter 2.1 or above.
Very simple in Dreamwaver to autocomplete any functions in WordPress - CodeIgniter or even your custom library of code
steps are as follows:
1- in Dreamwaver open site -> Site Specific Code Hints -> (You can select wordpress-joomla-...) or even any folder like (CI folder) that you mentioned.
2- do not forget to select (scan this folder,recursive)
3- it will ask you for custom name just write any one you like "like mynewCI"
it will create a config file in your selected folder => do not remove it.
That is all.
Now press ctrl+space and enjoy.
for
Eclipse with PDT !the best I use it
for
Dreamweaver CS5 & CS5.5
I want to use tinyMCE for adding content to front end. I got a link for downloading latest version of tinyMCE
But I am confused to choose among TinyMCE 3.5.5 development package and TinyMCE 3.5.5.
Please let me know which one is suitable to implement. I am using php 5.2 with symfony 1.0 framework.
Thanks
Navigating to the official tinymce download page you will be offered 3 different versions of tinymce:
TinyMCE 3.5.5 regular package
TinyMCE 3.5.5 jQuery package
TinyMCE 3.5.5 development package
The first one is the package for regular production use. This is usefull if you do not wish to make any changes to existing core files or add any custom plugins.
The second one is called "jQuery package". This one allows a developer to treat the tinymce editor instances as jQuery objects and use jQuery style like operations. (I strongly advise everyone not to use this package, because it is a source of trouble and is slow when it comes to keyboard input handling due to the object creation overhead).
The last one is a developer package. This one contains the regular build and can be used in the same way. By including tiny_mce_dev.js instead of the regular tiny_mce.js the non-minified tinymce files like classes and plugins are getting loaded and easier debugging is possible. It is a good choice to use this package if the downloader plans to write own plugins or develop/use a very complex tinymce configuration setting.
It does not really matter which one you choose, both with be exactly the same. The only difference is that TinyMCE Developer version will allow you to make changes to the source (which is javascript).
I have been using TinyMCE for a couple years now for custom Content Management Systems, and I have never felt the need or had a reason to edit the source.
Conclusion: The regular version 3.5.5 will almost certainly be good enough.
Use either one.
The Dev package just gives you bunch of extra stuff including a non-minified version of the script.
I have Zend debugger running successfully in Eclipse but I don't understand how to debug a Yii project. I.e, I can debug a single page PHP script but I don't know what the configuration options are supposed to be for a Yii web application.
For example, I was thinking the Controller file would be the file I would select to actuall debug but it says the file can't be found. I've attached a screen shot of what the options are.
I've used the Firefox Zend Debugger extension and that works great. Now, I just want to know how to do the equivalent of that in Eclipse.
The basic options are: File and URL
Have you debugged other applications using Eclipse? If so, it shouldn't be much different:
I'm usually debugging on /, meaning I login to the application, go wherever I need to, then prepare the debugged scenario (including breakpoints where appropriate). Next, I run a "general" debug session -> a new tab is opened on the browser. I ignore this tab and instead go back to the tab where I prepared the scenario I want to debug and continue there.
I usually go with marking / or /index.php as the "debug entry point" (or whatever the term is). If needed (I don't think I needed to with Yii), I would have config some "paths" that tell the IDE that "/" is translated/represented by HTDOCS. Again, I don't think I needed to with Yii (but I debugged little with Yii thus far).
I once had a blog post on debugging Drupal with PDT (which is Eclipse) and xDebug (which is an alternative to the Zend Debugger and essentially the same). You might find it useful: link.
Good luck!
When in a framework, work within the framework rules. If something's not working, don't try to review the code step-by-step. That's unproductive, because you will pass through dozens of encapsulated functions with no discernible order. Yii is built on a singleton pattern, which in my experience makes it just about impossible to know where you are or where you're going.
I am trying out Aptana for general PHP development, i loaded an old CakePhp project to test the autocomplete and all i can get are the local functions and variable and absolutely none of the inherited ones, which kinda ruins the whole thing. Is there a setting i dont know about that fixes this?
apparently i needed to set up a "Nature" to PHP, the default was some eclipse.something version. Aptana reindexed the file and it works now.
The original poster was correct in adding PHP to the "Nature" of the project, however he did not provide how to do it. I also had the same problem and once I added PHP to the "Nature" selection list the autocomplete provided the options for inherited classess as well.
To add the PHP Nature:
Right click on your project in the Project Explorer View
Click on Properties
In the "Properties for project" window, select Project Natures in the left list box
In the Project Natures window, place a tick next to PHP
Click on OK button
that should get you the autocomplete list.
AJ
I haven't used aptana for PHP, but since it's based on Eclipse I assume the cake folder (in the same level as your app folder usually) needs to be added to your project path.
You can go into the properties of your project and either add it to the path or add it to the libraries.
I usually setup my project to point to the whole folder so I don't need need to do this step, but my Eclipse installation will pick up the inherited methods just fine.
I'm getting started with Flex and initially installed the Adobe environment (Flex Builder 3) and later found out that they're starting to call it Flash Builder 4.
Anyway since I'm very new to this technology and I have to leave Flex Builder 3 anyway, I'm trying to find out if there are any advantages to developing with Adobe's Flash Builder 4 (adobe's commercial IDE) vs. Eclipse (which Adobe seems to also heavily support, they make and support a special plugin for it).
My main language is PHP so my end goal is to integrate Flex with PHP. It sounds like Adobe did a decent job with integration in the Flash Builder 4 release (you can choose a language and choose data services options, etc. which should make that integration smoother), but is that integration only available through their commercial Flash Builder 4 or is it also available through the plugin they release for Eclipse? I'm trying to get some advice from those who used the technology so I can make up my mind whether there's a lot of advantage using Adobe's commercial IDE vs. the very robust open source Eclipse IDE. Other aspects I may not have considered are also welcome.
Note: I use php without a framework, and I keep also hearing Zend from Adobe themselves, which is kind of confusing too. I guess they're using part of the zend for remoting. Does anyone know how zend will affect my flex development environment?
Flex Builder and Flash Builder both function as Plug-ins to Eclipse, though each also comes in a "stand-alone" flavor - which is still eclipse, but with a lot of the Eclipse functionality torn out for a smaller footprint.
What you want to do is pretty simple - get eclipse set up, install PDT or whatever your favorite PHP plug-in is and then install Flash/Flex Builder into that same instance of Eclipse. Make sure when you download FB you choose to download the "Plug-in" version instead of the stand-alone version. When you go to install it, it'll ask you where you want to install it - pick a location, and hit next. It will then ask you if you want to plug-in to an existing instance of Eclipse or use the bundled Eclipse (at least Flash Builder comes with a Bundled eclipse). Opt to select an eclipse version and point it toward the Eclipse install that has your PHP coder plugged into it.
If all goes well, once it' done you can open Eclipse and then switch views between Flash Builder and PDT all within one instance of Eclipse. I do this with Aptana, it's very handy to be able to do your HTML, PHP and AS3 all in one editor.
Good luck!
Also [edit]:
Adobe promotes Zend because of a Zend plug-in called ZendAMF. ZendAMF is the spiritual successor to AMFPHP - basically, with a little bit of setup you can create a dev environment where you are able to call PHP functions right from your AS3 code. You can set up a ZendAMF Class, for instance, called getUsers() which then queries your DB and pulls out a list of Users. You can use that to populate PHP ValueObjects, and then it will pass those VO's back to Flex in binary (much, much faster than XML) and if you have it set up correctly they will be data-typed as AS3 Value Objects of the same type.
This is very useful because it's all very transparent - you can then write an AS3 function called getUsers() which returns an Array of value objects, set it up to quietly call your PHP which calls the database, and have it return a value as though it were just all AS3 from start to finish. A bit tricky to set up, but once you're rolling there's really no going back! :)
I'm pretty sure they're actually the same thing - this was certainly the case with Flex Builder 3, and I'm assuming is the case with Flash Builder 4 as well.
The plugin is there for if you have an existing installation of eclipse and want to just add in Flash Builder to that. But if you don't already have it, the Flash Builder stand-alone installation includes eclipse, pre-built with the plugin.
As for Zend - Adobe is currently collaborating over aspects of the Zend Framework to improve integration with your Flex Apps. Zend have there own eclipse plugin called Zend Studio for building Zend Framework apps, which does integrate with the Flash Builder plugin. I've not used it myself, but from what I hear it's not that brilliant. You can still use Flex without any Zend stuff if that's the way you work.
Hope this helps.
You should also check IntelliJ which has support for Flex and PHP. Apparently it's way better than FlexBuilder/Eclipse. We're using Eclipse with the FlexBuilder plugin but are looking to switch over.
You can download and use the Flash Builder Standard program for free if you're a student or unemployed, so I would grab that. The premium version does have some nice to haves like Network Monitoring and better code generation tools.
The standard package will install the Zend PHP engine for remote calls if you use PHP, which is a framework that allows you to write your services in PHP, then make calls in Flash through the Zend engine to PHP. It's pretty useful, and they will easily pull properly formatted PHP services into the data view (a window showing your available service calls).
You can also use other frameworks like AMFPHP.
Overall, the only real differences between the Adobe Flash Builder and Eclipse plugin is if you upgrade to the Premium version or you prefer a concentrated lightweight version of eclipse tailored specifically to Flash (the Builder).