Login   Register  
PHP Classes
elePHPant
Icontem

Redefine Class Error

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Date & Time  >  All threads  >  Redefine Class Error  >  (Un) Subscribe thread alerts  
Subject:Redefine Class Error
Summary:class name cannot be DATETIME
Messages:2
Author:Brandon Sussman
Date:2007-04-15 17:23:33
Update:2007-04-16 13:37:53
 

  1. Redefine Class Error   Reply   Report abuse  
Picture of Brandon Sussman
Brandon Sussman
2007-04-15 17:23:33
On line 15 of the class file:

class DATETIME {

'DATETIME' needs to be changed.

I use 'DATETIME_OBJ':

class DATETIME_OBJ {

but another string might be better.

  2. Re: Redefine Class Error   Reply   Report abuse  
Picture of Slava Ivanov
Slava Ivanov
2007-04-16 13:37:53 - In reply to message 1 from Brandon Sussman
Thanks a lot for the note. The class was created long time ago and this wasn't a problem at this time.

Sure, just rename it and use it.