教程如何使用phpDesigner项目
启动一个新项目可能会非常棘手。 There are lots of files to think about, functions to keep track of, variables, classes, and more.有大量文件思考,功能,跟踪,变量,类和更多。 But phpDeveloper has tools that help making projects a lot easier, and in this tutorial, we'll discuss a few such as但phpDeveloper的工具,以帮助使项目容易得多,在本教程中,我们将讨论一些诸如
∙ Project Manager项目经理
∙ Project Panel项目小组
∙ PHP Code Explorer PHP代码浏览器
∙ Declaration Toolbar宣言工具栏
∙ Todo and Bug Managers TODO和管理问题
∙ SVN Integration SVN集成
∙ FTP Integration集成的FTP
∙ File Snapshots文件快照
All the panels featured in this tutorial can be accessed somewhere within the View menu on the program's File toolbar.所有在本教程可以访问视图菜单内的某处该程序的文件工具栏功能面板。Everything else will be listed within the appropriate section.一切将列在适当的部分。
项目
The first thing you want to do when you start a new project is group the files together for easy access.你首先要做当您启动一个新项目组一起,方便访问这些文件。 This can be hard if you use several pieces of code in different places, but PHPD allows you to group code, no matter where is it, into one easy-to-manage project.这可能很难,如果你在不同地方使用的代码几件,但PHPD让你组代码,无论身在何处,是到一个易于管理的项目中。
To begin, open PHPD and go to Project > Project Manager (F11) > New.首先,打开PHPD并转到项目“>项目经理(F11键)>”新建。 Type in a name for your project, the project root (where most of your application will be), and a description of your project.键入一个名称为您的项目,该项目的根目录(如您的应用程序大部分),而您的项目介绍。
Then proceed to the filters page.然后进行过滤器页面。 PHPD is mainly for PHP, and so it only includes PHP in your project, but it has syntax highlighters and support for other files as well, so if you'll be dealing with .js, .css, xml, perl or some other language, click on Include Files, and Add a filter. PHPD主要是PHP的,因此它只包括在您的项目PHP的,但它的语法荧光笔和其他文件的支持,因此,如果您将处理将。js,。的CSS,XML的,Perl或其他语言,单击包含文件,并添加一个过滤器。 * acts as a wildcard, so to add support for .js and .css files, use *.js and *.css as filters for example. *行为作为通配符,所以添加支持。js和。CSS文件,*. js和使用,例如作为过滤器*.的CSS。Any new filters you make will appear in bold font.任何您将出现在粗体新的过滤器。如何运行php项目 If you want to include everything (files or images), click the Default button.如果你想包含所有(文件或图像),点击默认按钮。 It will add a single wildcard (*), which will make it include everything.这将增加一个通配符(*),这将使包括一切。 The same applies for including/excluding folders.这同样适用于包括/排除的文件夹。 You can also change the kind (what that filter applies to), and match method (how it finds out if a file is to be included), by right clicking on the fields, and selecting from the drop down box.您还可以更改的那种(什么是过滤器
适用于),和匹配方法(如何得知,如果一个文件被列入),通过右键点击领域,并从下拉框中选择。
If you use downloadable libraries or frameworks (such as Zend or Smarty) that are outside of the Project root, you can add or remove them on the Frameworks/Libraries tab.
If you use downloadable libraries or frameworks (such as Zend or Smarty) that are outside of the Project root, you can add or remove them on the Frameworks/Libraries tab.
如果您使用下载的库或框架(如Zend或Smarty的)属于项目的根目录以外,您可以添加或删除他们的框架/库选项卡。Doing this will allow you to write faster code by having its functions and classes available for viewing without searching documentation.这样做可以让你写的有自己的职能和类不提供搜索文件的浏览速度更快的代码。 For this tutorial, we will add them to show what PHPD is capable of.在本教程中,我们将增加他们展示自己PHPD有能力。
If you have a local web server you are working from, which you would like to use when testing (advised), then you can configure it on the localhost tab.如果您有一个本地Web服务器你是从,你的工作要使用时,测试(建议),那么你可以在本地主机标签配置。
When you've finished configuring, click OK, and your new project will appear in the Project Management box.当您完成配置,单击确定,你的新项目将出现在项目管理中。 At the bottom of the screen, click Open Project to get started.在屏幕的底部,单击打开项目开始。
Project Panel 项目小组
By now you will have seen a little panel like the one above pop up on screen, floating or docked to the side of PHPD.现在,你会看到一个像上述在屏幕上弹出一个浮动,或停靠到PHPD旁边的一个小面板。 This is the Project panel, the place to view all files you set with
filters from your Project root.这是项目小组,这个地方的所有文件,查看您与您的项目从根的过滤器。
If you click on the second button on the panel (the Project Files one), you will see it's already populated by files from the Smarty Library and Zend Framework we added earlier.如果你在面板上的第二个按钮(项目文件),你会看到它已经由来自Smarty的图书馆和Zend框架的文件,我们前面添加填充。 You can search incrementally (that is, the results update as you type) for a file, then open it up for viewing.您可以搜索增量(即结果的更新在您输入)的文件,然后打开浏览它。 Let's close the box and continue.让我们关闭方框,并将继续。
The first thing you'll want to do, if you have a need to do this step, is import any current work you have.第一件事你想要做的,如果您有需要做这一步,是当前工作的进口任何你。 If you selected an existing folder when creating your project, it would have done this automatically, but for this tutorial, we started with a blank folder, so we need to import something from an existing project.如果您选择一个现有文件夹创建项目时,它会自动这样做,但本教程中,我们开始使用空白文件夹,因此我们需要从现有项目的东西。 Click the Import folders/file button on the Project panel, browse to the folder or file you wish to impo
The first thing you'll want to do, if you have a need to do this step, is import any current work you have.第一件事你想要做的,如果您有需要做这一步,是当前工作的进口任何你。 If you selected an existing folder when creating your project, it would have done this automatically, but for this tutorial, we started with a blank folder, so we need to import something from an existing project.如果您选择一个现有文件夹创建项目时,它会自动这样做,但本教程中,我们开始使用空白文件夹,因此我们需要从现有项目的东西。 Click the Import folders/file button on the Project panel, browse to the folder or file you wish to impo
rt, and click OK.点击导入文件夹/文件在项目面板按钮,浏览到该文件夹或文件要导入,然后单击确定。 In a second or two, the folder/file will appear in the panel and it will now be part of the project.在一两秒钟,文件夹/文件将显示在面板中,它现在是该项目的一部分。Notice that the file exists in both the old and the new folders.注意,该文件同时以旧的和新的文件夹存在。 It makes a copy of it, so you don't break anything.这使得它的一个副本,这样你就不会打破任何东西。 Using this, you can create branches of your work, while still maintaining your core code.使用此,您可以创建你的工作部门,同时保持你的核心代码。
The forth button on the panel allows you to open a selected file, or to insert its file name,
The forth button on the panel allows you to open a selected file, or to insert its file name,
or full file path into the current document.关于小组提出的按钮允许您打开选定的文件,或插入到当前文档的文件名,或完整的文件路径。 So, if you have a file with a long, complex name you'd rather not type, you could use this shortcut.所以,如果你有一个长期,复杂的名字您不希望文件的类型,您可以使用此快捷方式。
Lets begin work.能让开始工作。 To open a file from the panel, you can double click it, click the Open button (4th button in the panel), or click and drag the file to the editing part of the screen.要打开一个从小组文件,你可以双击它,单击打开按钮(在小组第四按钮),或单击并拖动文件到屏幕的编辑组成部分。 Once open, you can code as you normally would, save, and close the file.一旦打开,您可以代码,您通常会,保存并关闭该文件。
To add a new folder to the project, select the Create a new Folder button, give it a name, and select OK.要添加一个新的文件夹到项目中,选择创建一个新的文件夹按钮,给它一个名称,然后选择确定。You can create, move, and delete files and folders all within PHPD,
Lets begin work.能让开始工作。 To open a file from the panel, you can double click it, click the Open button (4th button in the panel), or click and drag the file to the editing part of the screen.要打开一个从小组文件,你可以双击它,单击打开按钮(在小组第四按钮),或单击并拖动文件到屏幕的编辑组成部分。 Once open, you can code as you normally would, save, and close the file.一旦打开,您可以代码,您通常会,保存并关闭该文件。
To add a new folder to the project, select the Create a new Folder button, give it a name, and select OK.要添加一个新的文件夹到项目中,选择创建一个新的文件夹按钮,给它一个名称,然后选择确定。You can create, move, and delete files and folders all within PHPD,
so you don't need to use an external file browser like Windows Explorer to do this.您可以创建,移动和删除PHPD内的所有文件和文件夹,因此您不必像使用Windows资源管理器外部文件浏览器这样做。
The other two buttons, Reparse Project, and Unload Project are rarely used, but for completeness, I'll explain what they do.另外两个按钮,重新分析项目,并卸载项目很少使用,但为了完整,我将解释他们做什么。
Reparse project reloads the project you're in when you add/move/delete a file or folder outside of PHPD.重新分析项目重新加载项目时,你在添加/移动/删除文件或文件夹的PHPD外面。 These changes (along with access to their classes methods, functions and such) will not show up until you reload the project.这些变化(以及访问他们的类的方法,功能等)将不会显示,直到您重新加载该项目。The same applies for libraries/frameworks.
The other two buttons, Reparse Project, and Unload Project are rarely used, but for completeness, I'll explain what they do.另外两个按钮,重新分析项目,并卸载项目很少使用,但为了完整,我将解释他们做什么。
Reparse project reloads the project you're in when you add/move/delete a file or folder outside of PHPD.重新分析项目重新加载项目时,你在添加/移动/删除文件或文件夹的PHPD外面。 These changes (along with access to their classes methods, functions and such) will not show up until you reload the project.这些变化(以及访问他们的类的方法,功能等)将不会显示,直到您重新加载该项目。The same applies for libraries/frameworks.
这同样适用于库/框架。 If you add one, reparse the project, so you can take advantage of all PHPD has to offer.如果添加一,重新分析项目,这样你就可以利用所有PHPD利用所提供的。
Unload project allows you to get out of a project, to clear the Project panel.卸载项目可以让您摆脱一个项目,以清除项目小组。 I'm not sure why you'd want this, but its there in case you need it.我不知道为什么你会希望这一点,但它的出现在你需要它。
PHP Code Explorer PHP代码浏览器
When a file gets quite large, with many variables, functions, classes, requires/includes, constants, and interfaces, it can be quite hard to find where something is, especially if you can't remember its name and therefore can't use search.当一个文件被相当大的许多变量,
Unload project allows you to get out of a project, to clear the Project panel.卸载项目可以让您摆脱一个项目,以清除项目小组。 I'm not sure why you'd want this, but its there in case you need it.我不知道为什么你会希望这一点,但它的出现在你需要它。
PHP Code Explorer PHP代码浏览器
When a file gets quite large, with many variables, functions, classes, requires/includes, constants, and interfaces, it can be quite hard to find where something is, especially if you can't remember its name and therefore can't use search.当一个文件被相当大的许多变量,
函数,类,需要/包括,常量和接口,它可以是十分困难的事情是什么地方,特别是如果你不记得它的名称,因此不能使用搜索。 PHPD has an built-in Code Explorer, which makes things easier. PHPD有一个内置的代码浏览器,这使得事情更加容易。 It lists all of the items listed above in the currently viewed file, and links them with information such as where it is declared (line and character position), links it so a double click will jump to it, and also prints information from any phpDocumentor tags preceding it.它列出了目前中列出的文件,查看上面的所有项目,如在声明他们的联系资料(行和字符的位置),它链接所以双击它会跳,而且从任何phpDocumentor打印信息标记它前面。
Declaration Toolbar 工具栏
Declaration Toolbar 工具栏
Earlier, in the Project Panel section, we took a look at the Project Files page, which listed all files in your project root, as well as those in the libraries or frameworks you added.此前,在项目小组的部分,我们采取了在项目文件网页,其中列出项目中的根目录的所有文件,以及在图书馆或框架的添加。 In the Declaration toolbar (declaration is something that is declared for the first time, such as classes, functions, constants, and variables) we have 4 new buttons which help find and access parts of your code very quickly (especially for large projects).在工具栏上的声明(声明是值得被宣布第一次,如类,函数,常量,和变量)我们有4个,帮助到和您的代码访问部分很快(特别是大型项目)的新按钮。
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论