Zend Studio 13.6 Course - Locus IT Services

Zend Studio 13.6 Course

Locus IT ServicesZend Studio 13.6 Course
  • 1.Create a PHP project

    To start working in Zend Studio, you should first create a new PHP project which will contain the files for your application. In the procedure below you can choose which content to use in the project - Zend Studio's built-in PHP or Zend Framework.

  • 2. Create PHP Files

    You can now start to develop your application by creating PHP files in your project.

  • 3. Create PHP Elements

    You can use Zend Studio's PHP element creation wizards to quickly and easily create PHP elements such as classes and interfaces within your code.

  • 4.Code with Content Assist

    Manually type code in your files. As you type, content assist will suggest code options according to the context of the code. You can select a required code string to quickly insert it into your scriptIf the Content Assist window does not pop up automatically, press Ctrl+Space.

    No items in this section
  • 5. Rename Elements (Refactoring)

    If at any point during your development you want to rename an element, this can be easily done using the in-place refactoring feature. This will apply the rename operation to all occurrences of the required element so that all links between elements are maintained. Note: The refactoring feature also gives access to a range of other functions such as move file and extract variable. See Refactoring for more information.

  • 6.Comment your Code

    It is good programming practice to comment all functions, classes and methods in your code. This helps both the developer and others who might look at the code to understand its purpose. Simply add a double slash "//" and comment away! Zend Studio also allows you to easily select and comment existing lines.

  • 7. Formatting Code

    Zend Studio can automatically format your code according to set standards to make it easily navigable and readable.

  • 8. Finding and Replacing

    Zend Studio gives you a powerful search and replace mechanism for easily finding and replacing text strings in your code.

  • 9.Run your Application

    Great! You've finished coding your application. Now what? You can preview the execution of your application by running it locally as CLI, or as a Web application on your Web server.

  • 10.What Next?

    Once you've familiarized yourself with the basics, you can begin additional tasks in Zend Studio:

To rename an element within the editor:

  1. In the editor, place your cursor on the element to be renamed.
  2. From the menu -bar select Refactor | Rename.
    -OR-
    Right-click, and select Refactor | Rename.
    -OR-
    Press Alt-Shift-R.
    All occurrences of the element are put in a frame and the Refactor popup is displayed.
  3.   Type the new element name in the box.
    All occurrences of the element name are automatically updated.

Note:

To preview the changes before applying them, click the arrow in the right-hand corner of the Refactor popup and select Preview.

  1.   Click Enter to apply the refactoring.
    The element will be renamed and all instances where that element is referenced will be updated to reflect the changes.
Locus IT Project Management Office
What’s it?