Beginning CakePHP: Chapter 6 Solution

Beginning CakePHP: Chapter 6 Solution

Using the Time Helper is much like using the HTML helper. Remember when you created a link?
So after adding the Time helper to the PostsController :

var $helper = array('Html', 'Form', 'Time');

You will need to edit the date in view.ctp:

Date Published:

to:

Date Published: nice($post['Post']['date'])); ?>

Yay!
More CakePHP tutes to follow as i go along!

Posted by VoiDeT

Categorised under CakePHP
Bookmark the permalink or leave a trackback.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

or