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
-~----------~----~----~----~------~----~------~--~---

Reply via email to