Ejemplo n.º 1
0
        <div class="title">
            A test page
        </div>
    </div>
</div>
<div class="tip">
    <?php 
$url1 = $_app->pagePathing('view');
$url2 = $_app->pagePathing('view', $_GET);
$url3 = $_app->pagePathing('view', ['A' => 1, 'b' => 2, time()]);
?>
    <p><a href="<?php 
echo $url1;
?>
" target="_BLANK">平台登录测试</a></p>
    <p><a href="<?php 
echo $url2;
?>
" target="_BLANK">平台登录测试</a></p>
    <p><a href="<?php 
echo $url3;
?>
" target="_BLANK">平台登录测试</a></p>

</div>
<?php 
echo \Ws\Debug\AsDebug::instance()->jqAjaxBind();
?>
</body>
</html>
Ejemplo n.º 2
0
 public static function cmdBind(App $app)
 {
     Cmd::group([['id' => 'asdebug', 'event' => Request::GET, 'closure' => function ($a) {
         $f = Request::get('f');
         if ($f == 'json') {
             return AsDebug::instance()->cmdView($a, 'json');
         }
         return AsDebug::instance()->cmdView($a, 'ui');
     }]])->bindTo($app);
 }