Fatal error: Class 'sfGuardSecurityUser' not found in ...\lib\myUser.class.php on line 4

1.6k Views Asked by At

I get that error

Fatal error: Class 'sfGuardSecurityUser' not found in...\lib\myUser.class.php on line 4

this is my setting.yml

all:
  .settings:

    csrf_secret:            unCodeSecret
    enabled_modules:        [default, sfGuardAuth]
    escaping_strategy:      true
    escaping_method:        ESC_SPECIALCHARS
    use_database:           true

  .actions:

    login_module: sfGuardAuth
    login_action: signin`

and myUser.class

class myUser extends sfGuardSecurityUser
{
}
1

There are 1 best solutions below

15
On

Did you follow each steps from here?

Did you clear your cache?

php symfony cc

Did you enable the plugin in config/ProjectConfiguration.class.php ?

$this->enablePlugins(array(
  'sfDoctrinePlugin',
  'sfDoctrineGuardPlugin',
  // ...