I'm new to yii and I have this script in my script:
$ ( On '#div_exams' (' click ',' a [id = "download]], function (e) {e.preventDefault (); var filename = e.target.id; $ .ajax ({Type:" POST ", url:" & lt ;? Php echo Yii :: app () - & gt; createUrl ("Exam / Download Exem", Arrays ('fileName' = & gt; 'I need to pass FILENAME here' );; & Gt; ", success: function (Jason Response) {}, error: function () {}});}); So my question is, how can I pass a var file name in javascript to create url in yii?
Thank you very much :)
No comments:
Post a Comment