The thinkphp framework has been deployed to the SAE (Sina Cloud) and the code has been acquired locally. The immediate question is which development tool (IDE) is selected for the thinkphp project?
After a simple look-up comparison, and the factors that have eclipse in the computer, you decide to use Eclipse PDT (Php development Tools). (The network describes it as a castrated version of Zend Studio, so Http://www.zend.com/products/studio/comparison can see how it compares to Zend Studio, plus: Many people recommend small PHP projects, Use NetBeans).
PDT is installed, and a work Space is created for PHP project. The following question is how to use Eclipse to open an existing thinkphp project?
First, Eclipse cannot open a project like Visual Studio. It can import only one existing project into the current workspace.
Right-click Import ... Existing Projects into Workspace, select the Thinkphp project folder and you will find the page tip: No Projects is fou nd to import, and the projects area has no identified items.
This is because Eclipse import only imports project created by Eclipse, which is characterized by the. Project and. buildpath files in their root directory.
The solution to this problem is to create a new Eclipse PHP project based on the Thinkphp project.
PHP project, File, New, in the Create a PHP Project window, select Create Project at existing location (for existing source ), and select the project in the directory. Such as:
Click Finish. The thinkphp project appears in PHP Explorer.
Cheer up and you'll be happy to edit the code with eclipse!
Resources:
How do I choose PHP Developer Tools (PHP IDE)
How does I import an existing directory into eclipse?
ThinkPHP-3-IDE selection and Eclipse PDT Open thinkphp Project