Cannot redeclare class but there are no other classes with that name
Posted
by hsz
on Stack Overflow
See other posts from Stack Overflow
or by hsz
Published on 2010-05-01T18:20:45Z
Indexed on
2010/05/01
18:27 UTC
Read the original article
Hit count: 240
Hello !
I am working right now with Zend Framework
and I've created a Model_User_Row
in app\models\User\Row.php
.
When I try to create an instance of that class in IndexController
I get an error:
Fatal error: Cannot redeclare class Model_User_Row in
F:\Projekty\www\inz\app\models\User\Row.php on line 14
14th line is a close brace.
<?php
class Model_User_Row extends Zend_Db_Table_Row
{
/**
* @return array
*/
public function toArray()
{
$res = parent::toArray();
unset($res['password']);
return $res;
}
} // #14
In my project I have no other class called Model_User_Row
.
I am a bit confused - how to debug this case ?
© Stack Overflow or respective owner