php - Symfony 1.4 & ajax parameter "null" -


i'm trying use ajax,but cant reach variables in php.

on symfony page have :

$.ajax({    type: "post",    url: "agenda/data",    data: { title : title} }); 

and in action.class.php => executedata function try parameter : $title = $request->getparameter('title'); return null . why?

how can javascript variables action.class.php (i want insert them in db, , don't want null parameter lol)?


Comments

Popular posts from this blog

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

Android Gson.fromJson error -