|sfDoctrineGuardPlugin - How to use sfGuardGroup form in sfGuardUser module? [message #98555]
||Wed, 05 May 2010 14:28
Registered: August 2006
i'm tryin to embed a form from sfGuardGroup module in sfGuardUser action, the goal is to add user to groups within a single page using drag 'n drop and ajax, and creation of a new group inside the user page.
After some modifications, creating new templates, extending modules, actions etc. the backend works as accepted.
But i have one issue left and can't solve it. After deleting the cache (symfony cc), PHP throws me an error
Warning: require_once(.../cache/backend/dev/modules/autoSfGuardGroup/lib/BaseSfGuardGroupGeneratorConfiguration.class.php) _
[function.require-once]: failed to open stream: No such file or directory in .../apps/backend/modules/sfGuardUser/actions/actions.class.php on line 30
Fatal error: require_once() _
[function.require]: Failed opening required '.../cache/backend/dev/modules/autoSfGuardGroup/lib/BaseSfGuardGroupGeneratorConfiguration.class.php' _
(include_path='.;C:/Progs/xampp/php/PEAR') in .../apps/backend/modules/sfGuardUser/actions/actions.class.php on line 30
if i try to call the index page of my backend. The index page is to configured to route to sfGuardUser modules index action, and that's the problem.
During index page processing, symfony generates only sfGuardUser module related cache files but i need also cache files of sfGuardGroup module.
The current workaround is to request a sfGuardGroup page after than request the sfGuardUser page, or to not to delete generated cache files. One workaround could be to play with some redirects (request sfGuardUser page -> redirect to sfGuardGroup page if required cache files are missing -> redirect to previous requested sfGuardUser page), but this hack is not a clearcut solution.
Is there any way to let symfony generate cache files of additional modules beside the current requests module?
[Updated on: Wed, 05 May 2010 19:21]