Saturday, December 6, 2008

Custom Helper not Working

I am trying to add a helper to my app like this:

class ElapsedHelper extends AppHelper {
function test()
return $this->output('test');
}
}

this helper is saved as views/helpers/elapsed.php and included on my
controller with

var $helpers = array('Elapsed');

The problem is that my page is displaying the code for the helper and
saying that it can't find the file and the helper and that I should
create it and save it.

Any ideas?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: