09-14-2009, 09:31 PM
[eluser]Alex-Tunbridge[/eluser]
Okay I was wondering if it was possible to format a Unix Timestamp with Code Igniters Template Parser Class
Here is my code
Controller:
View:
And this is what I'm getting:
http://i26.tinypic.com/bdtu2p.png
Okay I was wondering if it was possible to format a Unix Timestamp with Code Igniters Template Parser Class
Here is my code
Controller:
Code:
$query = $this->db->where('page_id',$id)->get(TABLE_PAGES);
$data['pages'] = $query->row_array();
$data['title'] = 'Edit Page: '.$data['pages']['title'];
$this->parser->parse('manage/pages/edit',$data);
View:
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>Title</th>
<th>URI Name</th>
<th>Time Created</th>
</tr>
{pages}
<tr>
<td>{title}</td>
<td>{page_uri}</td>
<td>{time_created}</td>
</tr>
{/pages}
</table>
And this is what I'm getting:
http://i26.tinypic.com/bdtu2p.png