Missing php open/close tags?

On Dec 6, 1:00 pm, Sapslabs <[EMAIL PROTECTED]> wrote:
> I am creating a custom helper like this
>
> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to