#1 cody
我tpl中用<{spUrl c=forAjax a=detail D_id=$one.D_id}>生成了http://localhost/forAjax-detail-D_id-116.html这个网址不能用,自己打http://localhost/index.php?c=forAjax&a=detail&D_id=116就可以,为什么呢?是不是要改什么?
2010-11-16 18:07:28
2010-11-16 18:07:28
2010-11-16 20:06:22
BEGIN WinBlog
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
END WinBlog
2010-11-16 20:18:38
2010-11-16 20:58:02
function detail(){
dump($this->spArgs());
echo "haha";
$D_id = $this->spArgs("Did");
dump($D_id);
$detail = spClass("dslam")->findBy("D_id",$D_id);
dump($detail);
}
Array
(
[forAjax-detail-Did-12_html] =>
[user] => Arrayuname
[PHPSESSID] => ps8sbqbpm4kgv3p6o478k8la83
[did] => 12
)
haha
2010-11-16 21:23:31
2010-11-16 22:26:55