PHP OOP class problem..

06/15/2013 14:18 Ŧєคгlєรร#1
Hi, I got pretty bad problem with php.
Here is some of my code.
PHP Code:
$cfg = new Configuration;
class 
Configuration {
public 
$language "en"//en = english de = german

Then after upload I got error like
Code:
Cannot redeclare class Configuration in /var/www/strona/config/application.php on line 10
Line 10 = class Configuration. Did I do any mistake, please anwser. Thanks, Tearless.

#Fixed to close.
06/15/2013 17:02 PseudoPsycho#2
The error means that you have already declared that class.
Do you include the containing file? Then try to use include_once.
If not try to rename the class.
06/15/2013 17:58 Mikesch01#3
Quote:
Originally Posted by Ŧєคгlєรร View Post
#Fixed to close.
That means to me that he/she already solved it.
06/15/2013 18:48 PseudoPsycho#4
Quote:
Originally Posted by Mikesch01 View Post
That means to me that he/she already solved it.
I think it hasn't already been there when I posted my answer...
But who cares? Now the problem seems to be solved.