Question about the template parser |
[eluser]victorche[/eluser]
It is a newbie question and it is maybe more php than CI specific... I am developing a really small and light blog application with only a few features. CI is the best for my needs. Anyway I am using the template parser class as I prefer not to have php tags in my html. And because my blog entries are coming from the database, in my controller I am using: Code: 'blog_posts' => $query->result_array() http://ellislab.com/forums/viewthread/106557/ So with a few words, result_array() is giving me: Code: 1278746700 Code: Saturday, July 10th 2010, 09:25:00 Please, help me and sorry for this newbie question...
[eluser]markup2go[/eluser]
You could use PHP date() Code: <?php or MySQL DATE_FORMAT() Code: <?php
[eluser]victorche[/eluser]
Thanks, markup2go ... Anyway the first option is not for me ... I am using the template parser, so in my views I have: Code: {post_entries} Code: $query = $this->db->query(SELECT * FROM posts); |
Welcome Guest, Not a member yet? Register Sign In |