Hello, on my home page I have subscriptions to various programs. If a user is logged in, they can see what programs they are subscribed to and which ones they aren’t subscribed to. For the latter, I plan on having a link that they can click to request access. However, I want this link to start a small AJAX query that returns true upon running successfully. I am very experienced with AJAX, but I don’t really know how it integrates with Yii. If I just wanted to run a very simple script using AJAX, how would I go about this? By the way, the script is just a quick INSERT into a database table, if it matters. Any help getting started with this is appreciated, thanks.
I have a controller/action that will handle the ajax request. afterwards, in the view i write the link or button or whatever by using its htmlOptions array: