Is is possible? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Is is possible? (/showthread.php?tid=22591) |
Is is possible? - El Forum - 09-14-2009 [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: Code: $query = $this->db->where('page_id',$id)->get(TABLE_PAGES); View: Code: <table width="100%" border="0" cellspacing="0" cellpadding="0"> And this is what I'm getting: http://i26.tinypic.com/bdtu2p.png Is is possible? - El Forum - 09-29-2009 [eluser]fireproofsocks[/eluser] This gets back to the whole idea of view-level filters. I'm wondering the same thing... it doesn't seem that CI's parser class is geared for this. Does anyone know of a valid helper/library that can help format data in the view layer (as an alternative to resorting to raw PHP)? Is is possible? - El Forum - 09-29-2009 [eluser]Colin Williams[/eluser] ontroller: Code: $query = $this->db->where('page_id',$id)->get(TABLE_PAGES); |