New to Cake, issue with TimeHelper

2008-06-02 Thread gokujou
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

Re: New to Cake, issue with TimeHelper

2008-06-02 Thread Jonathan Snook
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]