Using custom_result_object |
Hi!
I'm trying to figure out how to use the "custom_result_object" and I need something which is very similar to the example in the documentation. The date is stored in a table as a unix timestamp and would like to have it returned as a human readable date. https://codeigniter.com/user_guide/datab...lt-objects So I figured I'd give "custom_result_object" a try because it could come in handy in some other spots. Model: PHP Code: public function get_shortlink_list($team = 0, $order = 0, $limit = 0, $offset = 0) { The Shortlink_List.php contains: PHP Code: <?php The part of the controller using this: PHP Code: public function links() { The result I'm getting is: Fatal error: Call to a member function format() on string in Even though I've followed the example in the documentation very closely. Any ideas / hints would be appricated. Thanks, jay |
Messages In This Thread |
Using custom_result_object - by thejay - 05-18-2017, 08:47 AM
RE: Using custom_result_object - by Kaosweaver - 05-19-2017, 09:44 AM
RE: Using custom_result_object - by Kaosweaver - 05-19-2017, 10:45 AM
|