Download the PHP package transactpro/phalcon-debug-widget without Composer
On this page you can find all versions of the php package transactpro/phalcon-debug-widget. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download transactpro/phalcon-debug-widget
More information about transactpro/phalcon-debug-widget
Files in transactpro/phalcon-debug-widget
Package phalcon-debug-widget
Short Description Very simple to install Debug Toolbar Widget for Phalcon framework.
License
Informations about the package phalcon-debug-widget
Phalcon Debug Widget
Note (How it works):
The debug widget for now is very simplistic and more of a proof-of-concept. It expects you have three services in your dependency injector named "db", "dispatcher" and "view" and that they correspond to those services. When you pass the DI to Phalcon Debug Widget It looks for those specific services and:
- sets them as shared services
- sets the eventManager for them
- Attaches itself to those events
This means passing the DI to the debug widget will alter those services. Generally speaking, a shared db, dispatcher, and view is fine. If you have ideas for other ways to hook in, please open an issue for discussion.
The Phalcon Debug Widget is designed to make development easier by displaying debugging information directly in your browser window. Currently it displays php globals such as $_SESSION as well as outputing resource usage and database queries and connection information. It includes syntax highlighting via Prismjs.com.
If it looks familiar, its because its modeled after the Yii debug toolbar
Installation
Usage and Configuration
Define a debug or environment flag in your main index.php (or config.php) file so you can easily disable the Phalcon Debug Widget on production environments. Example:
Add these lines to your index.php file before you handle application.
Or you can specify your custom list of providers and panels:
Preview
Server
Request
Views
Database
Api calls
Attribution:
Bug Icon designed by Nithin Viswanathan from the Noun Project
JQuery Syntax Highlighting implemented with Prismjs.com