예제 #1
0
파일: test.php 프로젝트: ashora/leiphp
function method_get()
{
    echo 'GET请求';
    APP::dump($_GET);
    APP::dump(SQL::getAll('show tables'));
    APP::dump(SQL::getAll('show databases'));
    APP::dump(SQL::getAll('select 1+1 as a'));
    // 渲染模板
    APP::template('test.html');
}
예제 #2
0
파일: test.php 프로젝트: sjclijie/SlimPHP
function method_get()
{
    echo 'GET请求';
    APP::template('test.html');
}