Beginning CakePHP: Chapter 6 Solution

Meta: February 13th 2009 // CakePHP // 81 views

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!

Tags: , , ,

WeDecal.com

Postscript: Leave A Comment // Subscribe (RSS Feed)

Want To Be Heard? Comment Here!

// I Love Comments, Especially Nice Ones

Who Are You?

Your Email Address

Your Website

:D :) :o :eek: :( :lol: :wink: :arrow: :idea: :?: :!: :evil: :p

You can follow any responses to this entry via its RSS comments feed. You may also leave a trackback by clicking this link.