How to call a helper function from CakePHP component?

How do I call a helper function from CakePHP component?

+1
cakephp
source share
2 answers
App::import('helper', 'Upload'); $test = new UploadHelper(); pr($test->hi()); 
+7
source share

use this

 $this->controller->helpers[] = "helper name"; 

inside the component class

0
source share

All Articles