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 » sfGuard modification/extension
sfGuard modification/extension [message #102893] Wed, 21 July 2010 18:52 Go to next message
zelaz  is currently offline zelaz
Messages: 2
Registered: July 2010
Junior Member
my setup:
symfony 1.4.5
doctrine orm
highly normalized tables(not very relevant for this post)

I am trying to create a module, called admin, that would allow me to do a subsection of what is possible via

http://app/sfGuardUser
http://app/sfGuardGroup
and
http://app/sfGuardPermission

I'd like to have the url be http://apps/admin
and have those forms (modified though, not all fields are needed)
so, I generate a module called admin.
I tried copying in actions/forms etc. from sfDoctrineGuard..
into the admin modules' directories...
of course because the names of my module does not jive with the name of the sfdoctrineguard modules... the extensions are failing
[it is of utmost importance that I dont go hacking up base/plugin files]


following what's suggested here:
http://groups.google.com/group/symfony-users/browse_thread/t hread/f3a2197fdb95e285

trying to do the simple version.. just strip out what i don't need via the admin generator, this doesn't really work either (And it still does not solve the problem of the URL)

So.. how can I embed all of these forms, modify them, and have them all show/work through my own module?
Any ideas?

will continue hacking at this and posting.

cheers,
Charles



Re: sfGuard modification/extension [message #102960 is a reply to message #102893 ] Thu, 22 July 2010 20:20 Go to previous message
zelaz  is currently offline zelaz
Messages: 2
Registered: July 2010
Junior Member
a HA

OKAY
so by DEFAULT the generator.yml file has no filters: entry

I should have checked for this.

To confirm, yes you CAN invoke this method.

We learned this today, and it DOES work, however now...
I am trying to extend these classes/methods/forms into a different module, to create an administrative front end for all aspects of sfguard, to reside in modules/admin.


will post further progress.

cheers,

charles


UPDATE:

so, I tried being clever...

in my actions class, I tried to

require_once(sfConfig::get('sf_plugins_dir').'/sfDoctrineGua rdPlugin/modules/sfGuardUser/lib/BasesfGuardUserActions.clas s.php');
require_once(sfConfig::get('sf_plugins_dir').'/sfDoctrineGua rdPlugin/modules/sfGuardUser/lib/BaseSfGuardUserGeneratorCon figuration.class.php');
require_once(sfConfig::get('sf_plugins_dir').'/sfDoctrineGua rdPlugin/modules/sfGuardUser/lib/lib/BaseSfGuardUserGenerato rHelper.class.php');

Fatal error: Class 'autosfGuardUserActions' not found in /home/cwisniewski/dev/Agasti/dev/plugins/sfDoctrineGuardPlug in/modules/sfGuardUser/lib/BasesfGuardUserActions.class.php on line 18

so tracing things back through, it's obvious that baseSfGuardUser classes extend the yet to be made autoSfGuardUser Classes...

the question now is, how to instantiate the forms that have yet to be created on my own outside of the sfGuardUser module?

[Updated on: Thu, 22 July 2010 22:38]

Previous Topic:SfDoctrineGuardPlugin : How to desecure the action of a module
Next Topic:embeded form doesn't save changes
Goto Forum:
  

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