在我的控制器我有两个功能index和archiv 在这两个函数中我有相同的一组过滤条件,但对于档案功能我使用索引视图。与渲染函数结合设置条件该怎么做。你有关于如何解决这个问题 public function index() {
...
$this->set('events', $this->Paginator->paginate($cond));
任何暗示 - public
我在CakePHP中新,我试图在Cakephp2.x没有成功运行Endroid/QRCODE找不到接口。我的控制器看起来像如下: 2017年9月27日2点11分55秒时出错: public function presta_my_function(){
App::import('Vendor', 'Endroid\QrCode', array('file' => 'Endroid/Q