标签: cakephp
如何从CakePHP组件调用辅助函数?
答案 0 :(得分:7)
App::import('helper', 'Upload'); $test = new UploadHelper(); pr($test->hi());
答案 1 :(得分:0)
使用此
$this->controller->helpers[] = "helper name";
内部组件类