Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
What is most simple way to get Japanese Holidays?
  • Hello.
    I wont to use Japanese Hlodays without maintenance.
    I think PEAR Date/Holidays is suitable.
    But FuelPhp displays error.

    <Code>
    class Controller_index
    {
        public function action_Index()
        {

            require_once 'Date/Holidays';

        }

    }

    <Error>
    Fuel\Core\PhpErrorException [ Runtime Notice ]: Non-static method Date_TimeZone::isValidID() should not be called statically
    /usr/share/pear/Date/TimeZone.php @ line 4717

    What's best idia for this trouble?


  • Without knowing the package: it doesn't look like you are supposed to call that method statically, I assume you are supposed to create an instance of the class, like

    $var = new Date_TimeZone;
    $isvalid = $var->isValidID();

Howdy, Stranger!

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

In this Discussion