Posted: Fri Aug 04, 2006 2:50 pm
Further, main.php isnt really finished I just got snagged here, neither is action. I just needed to understand if trying to instantiate an object that is not $this object in the classes is a bad design practice....
Which is most certainly what's causing the problem --- I call 1 'user' instance in a class and then another 'user' instance and thats where my problem crops up.
-- Cannot redeclare class action
From what I gather this has nothing to do with the 'action' class and is simply saying that I'm an idiot for making 2 'user' objects and expecting PHP to know which is which. Incedentailly I have tried giving them different names with no avail. Java can do this, I don't know if PHP5 is capable. I guess its just a long winded question to did i structure my OO in a way that will work and makes sense or have I commited an OO sin.
Which is most certainly what's causing the problem --- I call 1 'user' instance in a class and then another 'user' instance and thats where my problem crops up.
-- Cannot redeclare class action
From what I gather this has nothing to do with the 'action' class and is simply saying that I'm an idiot for making 2 'user' objects and expecting PHP to know which is which. Incedentailly I have tried giving them different names with no avail. Java can do this, I don't know if PHP5 is capable. I guess its just a long winded question to did i structure my OO in a way that will work and makes sense or have I commited an OO sin.