//前端資料提交
$('#submit').on("click",function (event) {
alert("hao");
$.ajax( {
type: "POST",
url: "{:url('Ruku/tianjia')}",
url: $("#form-admin-add").serialize( data: $("#form-admin-add").serialize(
dataType: "json",
success: function(data){
alert(data);
alert(data);
% 2
你換成下面這樣試試:
$param = $this->request->param();
#