Hi guys. This article will describe another Z-Ray extension developed by the PHP community, this time for Joomla.
Let’s first take a look at the information the extension displays.
This first panel in the extension is kind of an overview panel providing general info on the application’s configuration, including info on the app’s version and the template it’s using, and values for various configuration directives such as ‘debug’ and ‘error reporting’.
The Events panel lists all of the Joomla events that were fired by the page. You’ll be able to see the event name, its execution time, how many times it was triggered and passed arguments.
This panel provides a list of all the various files used by the Joomla app during execution, including the file’s absolute and relative path.
The Modules panel is extremely useful for Joomla developers as it gives visibility into all modules loaded by Joomla core regardless of their output – information that otherwise would be very time consuming to retrieve.
The panel shows the module title and name, it’s position on the page, an indication on whether the module is cached or not, and execution time – a crucial detail to improve performance.
Another important panel in the extension is the Plugins panel which gives you a list of all the triggered Joomla plugins on the page. So used in tandem with the Events panel, Z-Ray will help you see which plugin does what, and at which event.
And last but not least, in the Request panel you’ll be able to see some general info on the request, such as the component used, and the view and layout.
Installing the Joomla extension for Z-Ray is easy:
- Create a folder in the Zend Server 8 installation files, as follows:
- Mac and Linux: /usr/local/zend/var/zray/extensions/Joomla
- Windows: C:\Program Files (x86)\Zend\ZendServer\data\zray\extensions\Joomla
- Copy the extension files from the GitHub repo to this folder.
- Access the Zend Server UI , go to the Configurations | Z-Ray page, and make sure Z-Ray is in Enabled mode.
- Open your app in a browse
The Joomla extension is a fine example of how to extend Z-Ray. If you’re thinking of developing your own extension for Z-Ray, all the documentation you need to learn how to build a Z-Ray extension is detailed beautifully on GitHub.
For more information on this extension, see https://www.yireo.com/software/joomla-extensions/zray.