PHP DateTime class not found |
Hi,
Error Class 'App\Controller\DateTime' not found PHP Code: $start = new DateTime($this->request->getPost('start_date')); Correct me if I'm wrong but isn't DateTime class is built-in PHP 7? But codeigniter 4 cannot find the class. Thank you for helping..
You need to add a \ in front of native php functions.
\DateTime instead of DateTime |
Welcome Guest, Not a member yet? Register Sign In |