How do I call a helper function from a CakePHP component?
How do I call a helper function from a开发者_运维技巧 CakePHP component?
App::import('helper', 'Upload');
$test = new UploadHelper();
pr($test->hi());
use this
$this->controller->helpers[] = "helper name";
inside component class
精彩评论