开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜