1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 21:38:14 +01:00
php-debugbar/demo/dump_assets.php

16 lines
325 B
PHP
Raw Normal View History

<?php
include 'bootstrap.php';
if (!isset($_GET['type'])) {
$_GET['type'] = 'js';
}
if ($_GET['type'] == 'css') {
header('content-type', 'text/css');
$debugbarRenderer->dumpCssAssets();
} else if ($_GET['type'] == 'js') {
header('content-type', 'text/javascript');
$debugbarRenderer->dumpJsAssets();
}