lichtner / notorm-nette-panel
NotORM panel for Nette framework for debugging
dev-master
2013-06-24 14:59 UTC
This package is not auto-updated.
Last update: 2024-11-23 13:37:26 UTC
README
NotORM Panel for Nette framework for debugging
Instalation
Into app/bootstrap.php
after
$container = $configurator->createContainer();
add this lines
# connect NotORM panel
$panel = NotORMPanel::getInstance();
$panel->setPlatform($container->pdo->getAttribute(PDO::ATTR_DRIVER_NAME));
\Nette\Diagnostics\Debugger::addPanel($panel);
$container->notorm->debug = function($query, $parameters) {
NotORMPanel::getInstance()->logQuery($query, $parameters);
};
It is not nice but work ok ;-)