Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
class datetime not found
  • hiiii 
    whene i try to use class datetime in my task , i have the error :Fuel/tasks/datetime not found in apppath/tasks/mytask  whene i execute the command php oil refine mytask;
     please helpppp!!!

    thanks in advance
    sabah
  • Datetime is a PHP internal class defined in the global namespace.

    So if you're using namespaces for your class, you need to use \Datetime.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion