I'm doing some experimenting with AJAX in CakePHP and it seems to work except that the view that gets returned includes the default template. How can I get rid of that (or even just specify a different empty template for a view)?
3条回答 默认 最新
- dongli8466 2009-05-05 21:15关注
function ajaxFunction() { //do stuff $this->layout= 'ajax'; }
Ajax is an included blank layout to prevent extra markup being added, exactly what you want.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报