Hi, I am relatively new to Cake, I took over a web site that uses it and am still learning the ropes, but slowly getting there.
One issue has do have is with the image shown below.
I want to be able to retrieve data from the DB when clicking on the Apply link.
I have create a model and controller and have added this code to the click event for the link.
$('#go').click(function(){
$.ajax({
url:'/discount/index',
type:'POST',
data:data
});
What I'm unsure about is how to retrieve the the data from the DB and how to put it into the input box - table is called settings and field is discount_code.
Any help would be greatly appreciated
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment