Hi all,

I need some help please.

I have a function/controller which is called by ajax calls.  In the
function I want to get some data from a model, format the data into
html, and then return the HTML.

It makes sense that I should be able to pass the model data to a view
and then pass the html from the view back to the ajax function.  I
cant work out how to do this.

This is what I would expect to happen:
Ajax call to controller --> Controller gets data from model -->
controller passes data to view --> View does its thing and passes back
HTML to controller (rather than the browser) --> controller returns
the HTML to the ajax call.

Any help on this would be appreciated.  Thanks,

Reply via email to