Re: New to Cake, issue with TimeHelper
That's usually a sign that you forgot to include the Time helper at the controller. eg: var $helpers = array('Time'); On Mon, Jun 2, 2008 at 1:41 AM, gokujou <[EMAIL PROTECTED]> wrote: > but all I get is this as an error: > > Notice (8): Undefined variable: time [APP/views/posts/index.ctp, line 10] > Is there a reason? I am probably missing something. Thank you for any > help! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
New to Cake, issue with TimeHelper
Hello, I am trying to use the time helper to format a date object string. I am trying to use this script: echo($time->niceShort($post['Post']['created'])); but all I get is this as an error: Notice (8): Undefined variable: time [APP/views/posts/index.ctp, line 10] Fatal error: Call to a member function niceShort() on a non-object in / nfs/c01/h05/mnt/36683/domains/justinmueller.com/html/cake/app/views/ posts/index.ctp on line 10 Is there a reason? I am probably missing something. Thank you for any help! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---