Sponsor
Now Playing
- Alix Perez – I'm Free 3 hours ago
- Alix Perez – Intersections 3 hours ago
- Alix Perez – Forsaken 3 hours ago
- Glen E Ston – Ouroboros (Original Mix) 3 hours ago
- Black Sun Empire – Everything 3 hours ago
Beginning CakePHP: Chapter 6 Solution
February 13, 2009,
89 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!