嗨,我是 CakePhp 的新手,希望你能帮助我
class BookingsController extends AppController {
public $helpers = array("PDF");
//public $virtualFields = array(
// 'full_name' => 'CONCAT(Customer.cust_fname, ", ", Customer.cust_fname)'
//);
public $components = array('RequestHandler');
public $components = array('Search.Prg');
public $presetVars = array(
array('field' => 'search', 'type' => 'value'),
);
/**
我现在的问题是两者都需要 $components 。有什么办法可以合并在一起吗?或者我怎样才能同时调用请求处理程序和 search.prg?我希望你能帮忙