Felix Geisendörfer wrote:
> Use require_once instead of require and you should be fine.

Unfortunately no. I go the same error.

Fatal error: Cannot redeclare class custommodel in
H:\www\multi-cake\casting\models\custom_model.php on line 2

What else?

Thanks and bye
D.

//////////////////
//modules/custom_model.php
<?php
class CustomModel extends AppModel{

}
?>

//////////////////
//modules/user.php
<?php
require_once("custom_model.php");

class User extends CustomModel{
   var $name="User";
   //...
}
?>

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to