本文整理汇总了PHP中Debugger::get_routes方法的典型用法代码示例。如果您正苦于以下问题:PHP Debugger::get_routes方法的具体用法?PHP Debugger::get_routes怎么用?PHP Debugger::get_routes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Debugger
的用法示例。
在下文中一共展示了Debugger::get_routes方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
<div id="debug-routes" class="top" style="display: none;">
<h1>Routes</h1>
<table cellspacing="0" cellpadding="0">
<tr align="left">
<th>Name</th>
<th>URI</th>
<th>Route Regex</th>
</tr>
<?php
foreach (Debugger::get_routes() as $route) {
?>
<tr class="<?php
echo Text::alternate('odd', 'even') . ($route['current'] ? ' current' : '');
?>
">
<td><?php
echo $route['name'];
?>
</td>
<td>
<pre><?php
echo HTML::entities($route['uri']);
?>
</pre>
</td>
<td>
<pre><?php
echo HTML::entities($route['route_regex']);
?>
</pre>
</td>
示例2: count
echo count(Debugger::get_modules());
?>
)
</li>
<?php
}
?>
<!-- Routes -->
<?php
if (Kohana::$config->load('debugger.panels.routes')) {
?>
<li id="toggle-routes" onclick="debugToolbar.show('debug-routes'); return false;">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHYSURBVDjLlVLPS1RxHJynpVu7KEn0Vt+2l6IO5qGCIsIwCPwD6hTUaSk6REoUHeoQ0qVAMrp0COpY0SUIPVRgSl7ScCUTst6zIoqg0y7lvpnPt8MWKuuu29w+hxnmx8dzzmE5+l7mxk1u/a3Dd/ejDjSsII/m3vjJ9MF0yt93ZuTkdD0CnnMO/WOnmsxsJp3yd2zfvA3mHOa+zuHTjy/zojrvHX1YqunAZE9MlpUcZAaZQBNIZUg9XdPBP5wePuEO7eyGQXg29QL3jz3y1oqwbvkhCuYEOQMp/HeJohCbICMUVwr0DvZcOnK9u7GmQNmBQLJCgORxkneqRmAs0BFmDi0bW9E72PPda/BikwWi0OEHkNR14MrewsTAZF+lAAWZEH6LUCwUkUlntrS1tiG5IYlEc6LcjYjSYuncngtdhakbM5dXlhgTNEMYLqB9q49MKgsPjTBXntVgkDNIgmI1VY2Q7QzgJ9rx++ci3ofziBYiiELQEUAyhB/D29M3Zy+uIkDIhGYvgeKvIkbHxz6Tevzq6ut+ANh9fldetMn80OzZVVdgLFjBQ0tpEz68jcB4ifx3pQeictVXIEETnBPCKMLEwBIZAPJD767V/ETGwsjzYYiC6vzEP9asLo3SGuQvAAAAAElFTkSuQmCC" alt="routes">
routes (<?php
echo count(Debugger::get_routes());
?>
)
</li>
<?php
}
?>
<!-- Messages -->
<?php
if (Kohana::$config->load('debugger.panels.messages')) {
?>
<li id="toggle-customs" onclick="debugToolbar.show('debug-messages'); return false;">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAIMSURBVDjLpVNLaxNRFP6STmaKdFqrgYKWlGLSgoiKCwsKVnFRtBsVUSTNyj/gxv4Bl678AyKCoCulgmtd+W7romgzKT4QMW1G+5hMpnPnnuuZm6ZNawoVBw7n3pn5vvP4zkkopfA/j9F8cafO3FekCjGpIgKIvayftTXOkr71jkz2/UXA4HxXfz72gIx/lBsWSfiVtwiWHK8B3kRQeX/6lmnnkuDAwn0MJSKQEFChQCp9CcHixxgsGWw3B01uRKfx9t1HIP1POpoSdUulLyD0vqO26IAkDW7tgSZYeHPqcmpXxkTChKzOaAKSEdo6jnEWVY5ehFxdHs2cn55rScDR73H6DKyyRWs1R0haGdR+z8YZ3MyMTj9rpUKi/PLkUJuZfmX3nkNYmQBxzYprpyCA2XMRrvNAcdfDhgKkm6ttKTdW6jH4w4RpD/ALAaNzhH2kSwALoSJCd9+VhIqEVVeD4C1MclaOT0Ke0Cowq+X9eLHapLH23f1XreDzI27LfqT2HIfvzsRAyLB2N1coXV8vodUkfn16+HnnvrPDhrmXsxBY+fmOwcVlJh/IFebK207iuqSShg0rjer8B9TcWY7q38nmnRstm7g1gy9PDk2129mjinjy3OIvJjvI4PJ2u7CJgMEdUMmVuA9ShLez14rj/7RMDHzNAzTP/gCDvR2to968NSs9HBxqvu/E/gBCSoxk53STJQAAAABJRU5ErkJggg==" alt="messages">
messages (<?php
echo count(Debugger::get_messages());
示例3: _collect_data
/**
* Collect the data
*
* @static
*/
protected static function _collect_data()
{
Debugger::get_benchmark_application();
if (Kohana::$config->load('debugger.panels.benchmarks')) {
Debugger::get_benchmark_groups();
}
if (Kohana::$config->load('debugger.panels.database')) {
Debugger::get_database_queries();
}
if (Kohana::$config->load('debugger.panels.files')) {
Debugger::get_files();
}
if (Kohana::$config->load('debugger.panels.modules')) {
Debugger::get_modules();
}
if (Kohana::$config->load('debugger.panels.routes')) {
Debugger::get_routes();
}
if (Kohana::$config->load('debugger.panels.messages')) {
Debugger::get_messages();
}
if (Kohana::$config->load('debugger.panels.stacktraces')) {
Debugger::get_stacktraces();
}
}