class ElapsedHelper extends AppHelper {
function test(){
return $this->output('test');
}
}
Which is save under views/helpers/elapsed.php
I am including this on my controller using
var $helpers = array('Elapsed');
but when I try it I get this error:
class ElapsedHelper extends AppHelper { function test(){ return
$this->output('test');} }
Missing Helper Class
Error: The helper class ElapsedHelper can not be found or does not
exist.
Error: Create the class below in file: www/views/helpers/elapsed.php
<?php
class ElapsedHelper extends AppHelper {
}
?>
Any idea on what I am doing wrong?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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:
Post a Comment