$('#div_exams').on('click', 'a[id^="download"]', function(e) { e.preventDefault(); var fileName = e.target.id; $.ajax({ type: "POST", url: "createUrl("exams/downloadExam"); ?>", data: {fileName: fileName}, success: function(jsonResponse) { }, error: function() { } }); });
วันเสาร์ที่ 9 พฤษภาคม พ.ศ. 2558
Yii framework, pass jquery parameters into Yii::app()->createUrl('controller/action',array('param'=>'value')
Yii Shopping-cart-component
Shopping Cart
Provides shpping cart functionality for models.
Cart is a container object that holds items collection and have handy methods to work with it.
It uses user session as a cart data storage.
https://github.com/yiiext/shopping-cart-component
สมัครสมาชิก:
บทความ (Atom)