mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-02-21 07:42:25 +01:00
24 lines
530 B
PHP
24 lines
530 B
PHP
<?php
|
|
|
|
include __DIR__ . '/vendor/autoload.php';
|
|
include __DIR__ . '/../../bootstrap.php';
|
|
|
|
$debugbarRenderer->setBaseUrl('../../../src/DebugBar/Resources');
|
|
|
|
use DebugBar\Bridge\PropelCollector;
|
|
|
|
$debugbar->addCollector(new PropelCollector());
|
|
|
|
Propel::init('build/conf/demo-conf.php');
|
|
set_include_path("build/classes" . PATH_SEPARATOR . get_include_path());
|
|
|
|
PropelCollector::enablePropelProfiling();
|
|
|
|
$user = new User();
|
|
$user->setName('foo');
|
|
$user->save();
|
|
|
|
$firstUser = UserQuery::create()->findPK(1);
|
|
|
|
render_demo_page();
|