tailieunhanh - Publishing PHP eclipse - part 7

Màn hình này sẽ đòi hỏi chúng ta đặt tên cho ứng dụng. Phần thứ hai yêu cầu chúng tôi nếu chúng tôi muốn lưu trữ các file trong vùng làm việc mặc định. Nếu hộp kiểm Sử dụng mặc định là kiểm tra, Eclipse sẽ tự động tạo một thư mục cùng tên theo vùng làm việc. Nếu hộp Sử dụng mặc định là không kiểm tra, chúng tôi có thể duyệt đến vị trí khác để lưu trữ các tập tin trong hệ thống tập tin | Writing PHP Code with Eclipse The first screen of this wizard allows you to select the type of application to create. All but one of these application types are available in the standard Eclipse SDK. The lone exception is the PHP Project which is available courtesy of PHPEclipse. Since we re creating a PHP web application click on PHP Project and then the Next button. 60 Chapter 4 This screen will require us to give a name to the application. The second part asks us if we would like to store the files in the default workspace. If the Use default checkbox is checked Eclipse will automatically create a directory of the same name under the workspace. If the Use default box is not checked we can browse to another location to store the files in the file system. This is one of the methods to override the default workspace. Give the application a name and click on the Finish button. When this is done your application will be listed in the Navigator view as a project. Underneath the project are the files that belong to the application. Right now it is empty except for a .project file. This file is used by Eclipse to keep track of projects and their interactions with Eclipse. Adding Directories We will add a few subdirectories and source code files to the project in order to build our application. To create a new directory select File New Folder from the main menu In this example we are creating a subdirectory named classes to store our PHP classes. Click on the name of a project in which you wish to create a subdirectory. In this case it would be the ShelterSite project. Enter the name of the subdirectory in the Folder name field. We are simply going to call the subdirectory classes. When you click on Finish this will create a directory under the project workspace in both the file system and Navigator view. If you click on the Advanced button this will give you access to a powerful file mapping feature of Eclipse. This feature will allow you to bring other areas of your .

TỪ KHÓA LIÊN QUAN