Jump to content

Fatal Error: Cannot Redeclare Class Preaction Event


Recommended Posts

Posted

Hello

i'm loading a model inside a preAction function event . but i get the redeclare class error .

when i load the model and i call a fucntion inside the module i get the error


Fatal error: Cannot redeclare class AdminSecurity in ..........

the code for this is :

Loader::loadModels($this, array("admin_utils.AdminSecurity"));
$this->AdminSecurity->ipRestrictions();

EDITED : event is loading 1 time .

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...