zainstalowalem ostatnio do swojej aplikacji sfGuarda. Niby wszystko jest okej, logowanie do zabezpieczonych akcji dziala (narazie z konta admina), wylogowanie tez, ale nie potrafie sie dostac do sfGuardUser. Mam zainstalowany swoj layout, i uruchamiajac adres typu:
Kod
http://www.example.com/backend.php/sfGuardUser
widze swoj layout.. No ok.. w templates modulu sfGuardUser sa 3 komponenty:
_groups
_password
_password_bis
probując je dodawac do layoutu:
<?php include_component('sfGuardUser', 'groups'); ?> <?php include_component('sfGuardUser', 'password'); ?> <?php include_component('sfGuardUser', 'password_bis'); ?>
otrzymuje błąd:
Cytat
[sfConfigurationException]
The component does not exist: "sfGuardUser", "groups"
stack trace
at ()
in SF_ROOT_DIR\lib\symfony\helper\PartialHelper.php line 135 ...
$error = 'The component does not exist: "%s", "%s"';
$error = sprintf($error, $moduleName, $componentName);
throw new sfConfigurationException($error);
}
// create an instance of the action
(...)
The component does not exist: "sfGuardUser", "groups"
stack trace
at ()
in SF_ROOT_DIR\lib\symfony\helper\PartialHelper.php line 135 ...
$error = 'The component does not exist: "%s", "%s"';
$error = sprintf($error, $moduleName, $componentName);
throw new sfConfigurationException($error);
}
// create an instance of the action
(...)
rowniez, sugerujac sie "Practical symfony", nie działa kod
Cytat
[sfConfigurationException]
The route "sf_guard_user" does not exist.
stack trace
at ()
in SF_ROOT_DIR\lib\symfony\controller\sfRouting.class.php line 380 ...
$error = 'The route "%s" does not exist.';
$error = sprintf($error, $name);
throw new sfConfigurationException($error);
}
list($url, $regexp, $names, $names_hash, $defaults, $requirements, $suffix) = $this->routes[$name];
The route "sf_guard_user" does not exist.
stack trace
at ()
in SF_ROOT_DIR\lib\symfony\controller\sfRouting.class.php line 380 ...
$error = 'The route "%s" does not exist.';
$error = sprintf($error, $name);
throw new sfConfigurationException($error);
}
list($url, $regexp, $names, $names_hash, $defaults, $requirements, $suffix) = $this->routes[$name];
w jaki sposob mam uruchomic ten modul? dodam, ze moja aplikacja nie jest podzielona na frontend i backend, w pliku settings.yml mam uruchomione wszystkie moduly:
Kod
enabled_modules: [default, sfGuardAuth, sfGuardGroup, sfGuardUser, sfGuardPermission]