Call to a member function humanize() on string - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Call to a member function humanize() on string (/showthread.php?tid=88427) |
Call to a member function humanize() on string - sknair143 - 09-07-2023 Hi, I'm getting the error when i humnize() a datetime string from my database. same working for created_at field but not working for doc_expiry_date Code: <?= $doc->doc_expiry->humanize(); ?> Date : Code: 2023-09-15 11:16:37 RE: Call to a member function humanize() on string - ozornick - 09-07-2023 See var_dump($doc->doc_expiry) Instance of Time() class? |