Created by LetsSurf, last update on 24/01/2008 09:20
PHPEdit supports almost all framework within Code Hint and Code Insight. You simply need to configure PHPEdit the right way.
To add support for Zend Framework:
1. Display the preference dialog (F10)
2. In Language -> PHP -> File dependencies, in the Include Path part, add the path to your ZF location, check the recursive checkbox, click on "Parse for cache", then Add.
You should now have all code hint and code completion for the framework.
Actions make PHPEdit extremely customizable. You can create actions that are calling PHPEdit commands. You ever think of when you want to save a file and have code beautifier cycle through it, upload it through FTP or commit it to subversion/svn?
Actions make this possible. If you are finding yourself doing operations consistently that could be automated in some aspect Actions are for you.
To get started, you need to know a little about the PHPEdit commands. Navigate to Tools -> Script Command Editor. Here you can right click and create a custom script that later you can add as an action.
My script looks like this:
CodeBeautifierExecute
FileSave
FTPPublishActiveDocumen t
What this does is allow me to execute code beautifier, save the file and bring up the dialog to publish to FTP.
The next step is to go to Tools -> Edit Preferences. Navigate to Graphical user interface -> Actions. Click New Action. Add your script into the Script section. Give it a caption and category. Then bind it to a shortcut (I gave this one Ctrl + Alt + P). You can also give it certain Contexts to run in by setting specific types of documents to run on, etc.
I hope this quick tip gave you ideas for creating your own actions that produce more efficient productivity!