namespace appindexcontrollerone;
use thinkController;
class Blog extends Controller
{
public function index()
{
return $this->fetch();
}
public function add()
{
return $this->fetch();
}
public function edit($id)
{
return $this->fetch('edit:'.$id);
}
}
我们就可以直接访问下面的URL地址了:
http://serverName/index.php/index/one/Blog