CakePHP: Controller without View and Model

来源:互联网 发布:农村淘宝政策 编辑:程序博客网 时间:2024/05/02 02:30

1) 不使用模型:

$uses = array();

如果不添加这一句,打开debug会提示出错.


2) 不使用视图:

在action中设置

$this->autoRender = false;


3) 不缓存查询

var $cacheAction = false;


iefreer

原创粉丝点击