cakephp - ajax update multiple div -
In my application, I need to update many divs. We can give div names in the array. But I do not know how to render two CTP files in the controller.
Render it for a CTP $ -> ('Newcut', 'AJAX');
I have to know how to update for two?
two. ). Then, in your opinion, presenting both elements. Like this:
myAjaxView.ctp
& lt ;? Php $ this- & gt; Render ('myFirstElement'); ? & Gt; & Lt ;? Php $ this- & gt; Render ('mySecondElement'); ? & Gt;
And you have two CTP files under the View / Elements (myFirstElement.ctp and mySecondElement.ctp) that contain HTML which you want to provide.
Good luck
Comments
Post a Comment