こんにちは、私は ajax 関数を持っていますが、cakephp で目的のコントローラーにリダイレクトできません。
$.ajax( {
type: "POST",
url: "/NewEvents/some_function",
data:array,
async: true,
success: function (data) {
alert('hello');
}
NewEvents は私のコントローラーで、 some_function はデータを送りたい場所です...
// In my controller file
function some_function()
{
some code.....
}
そして、出力形式を変更する方法??
誰でも私のコードを手伝ってもらえますか??