modified: application/route.php

modified:   public/index.php
	modified:   themes/blue/index_index.html
master
fengyuexingzi 8 years ago
parent f6d50105e2
commit 73ba2e690c

@ -19,9 +19,10 @@ return [
'new/:id' => [ 'new/:id' => [
//'News/read?status=1&app_id=5', //'News/read?status=1&app_id=5',
'News/read', 'News/read',
['method' => 'get|post','ext' => 'shtml'], ['method' => 'get|post', 'ext' => 'shtml'],
['id' => '\w+'], ['id' => '\w+'],
], ],
'hi' => 'index/index/hello',
'__pattern__' => [ '__pattern__' => [
'name' => '\w+', 'name' => '\w+',
], ],

@ -14,7 +14,10 @@
// 定义应用目录 // 定义应用目录
define('APP_PATH', __DIR__ . '/../application/'); define('APP_PATH', __DIR__ . '/../application/');
//资源相对路径 //资源相对路径 ...html资源路径与php文件路径不同
//html localhost/think/public/favicon.ico
//php d:/www/think/public/extend.php
// 相对路径时两者通用,但是 php 许多函数引入文件必须使用全路径 eg;(file_get_contents())
define('RELATIVE_PATH', dirname($_SERVER["SCRIPT_NAME"])); define('RELATIVE_PATH', dirname($_SERVER["SCRIPT_NAME"]));
// 加载框架引导文件 // 加载框架引导文件

@ -22,10 +22,10 @@
<script> <script>
function info() { function info() {
$.ajax({ $.ajax({
url : 'http://localhost/think-test/public/index/index/tree', url : 'http://localhost/think/public/hi',
method : 'get', method : 'post',
data : 'name=1&pass=2', data : 'name=1&pass=2',
async:false async:true
}); });
} }
</script> </script>

Loading…
Cancel
Save