Jump to content

Lodius2000

Members
  • Posts

    586
  • Joined

  • Last visited

    Never

Everything posted by Lodius2000

  1. gotcha...makes perfect sense solved
  2. Andy-H That worked. just to make sure I understand how it worked (like i said, reeeeeeally rusty at my php): including the false value for $datetime means that modify() must accept some sort of argument, so if you put in an argument it returns false because it is supposed to throw an exception, and if you put no argument, the function returns false, which throws an exception right?
  3. So I am extending the DateTime class and would like to completely disable the modify() function that is built in so i have this: <?php class NewDateTime extends DateTime { public function modify() { throw new Exception('modify() has been disabled.'); } } thats not the entire class description, just the pertinent part of course now any time I create a new object from NewDateTime I get this message at the top of the screen: what gives? how do I get rid of this and still disable modify()? I'm betting its a setting that i have wonky but I am really rusty in php so dont know where to look in php.ini
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.