Hi Siegfried,
> the subject says it all:
> is it possible to call a helper function from within the controller.
> Of course the helper is
> included in the var $helpers = array('Myhelper');
>
> class MyController extends AppController {
> function index() {
> $this->Myhelper->function_to_call(); // DOES NOT WORK - is it
> possible in any way ?
> }
>
> }
Just an idea:
function index() {
$myHelper = new MyHelper();
$myHelper->function_to_call();
$this->set('myHelper', $myHelper);
}
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---