Z-Ray Tip #2: Editing Code from Z-Ray!

      11 Comments on Z-Ray Tip #2: Editing Code from Z-Ray!

Did you know you could make changes to your code directly from Z-Ray?

Z-Ray’s Online Editor plugin allows you to open and edit any file on your file system without having to move one inch from your browser.

Here are a few short tips on how to use the Online Editor.

The first thing you’ll need to do is install the plugin. This is done by accessing the Plugins Gallery in the Zend Server UI, or the Z-Ray management dashboard if you’re using the standalone version of Z-Ray.

In the gallery, use the search box at the top of the page to locate the plugin.


Then, hit the Install button, and complete the wizard that pops up. The wizard displays information on the plugin such as the plugin’s readme file and licence agreement, and also validates dependencies exist.

Once installed, all you have to do is open your application in your browser.


Z-Ray will have a new panel titled Online Editor. This panel is basically a file explorer which you can use to locate a file on your file system and open it in Z-Ray. You can then edit your code and save your changes.


Another cool option is is to open the Editor from other Z-Ray panels.


Say for example your page is throwing warnings you’d like to take a closer look at. Simply click the Show in IDE icon show_in_ide (usually used to open a file in your IDE) for the warning you want to explore.


Same goes for the Database Queries and Functions panels. Simply open the relevant file in Z-Ray and make your changes.

Last but not least – you can also change the look and feel of the Editor using the theme selector at the top-right corner of the panel.


The Online Editor plugin uses the latest available Z-Ray extension API for allowing server-side actions. More information is available here.

Z-Ray Tip #1 –>