This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » User management plugins » sfDoctrineGuardPlugin - How to use sfGuardGroup form in sfGuardUser module?
sfDoctrineGuardPlugin - How to use sfGuardGroup form in sfGuardUser module? [message #98555] Wed, 05 May 2010 14:28
purcaholic  is currently offline purcaholic
Messages: 15
Registered: August 2006
Location: germany
Junior Member

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]

Previous Topic:[SOLVED] sfDoctrineApplyPlugin problem when "Apply for an Account"
Next Topic:sf_guard_password try to implement it
Goto Forum:

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software