Hi
I'm trying to append the content from one of the view file (page.ctp) into another view file (index.ctp). So basically what I'm trying to do is:
content from page.ctp ----> index.ctp
I managed to get the content of page.ctp using below method.
$.get('http://localhost/pages/10', function(data) {
console.log(data);
});
But based on console.log(data) instead of getting the content of page.ctp, I got the whole page.ctp + default layout. What I want now is to get the content of page.ctp only excluding other default layout file.
Hope someone can help me with this. Thank you.