用php做了一个添加按钮,点击将添加的数据存入到数据库

这是 jquery的代码,没有报错,在head from能看到每次提交的数据

php代码如下
class Broadcast extends Controller
{
public function index(){
$post=$this->request->param();
// if($this->request->isPost()) {
// // $post = input();
// $post=$this->request->post();
// }
if((isset($post))and(!empty($post))){

        }
    $sava=Db::table('broadcast')->save($post); 
       
       

return $this->fetch();
}

}
就一直报错,试过用if($this->request->isPost()) {
$post = $this->request->post();

还是不能将$post存入数据库

Db::table → DB::table