[symfony-users] Re: Admin generator : Use different Peer method according to the credential of the connected user

2009-03-20 Thread Tomasz Ignatiuk

You can ovverride buildCriteria() method in actions. Check there
credentials and add Criteria to it
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Admin generator : Use different Peer method according to the credential of the connected user

2009-03-20 Thread Alan Bem
Use *your_module*GeneratorConfiguration.class.php. Its PHP based generator
configuration.
U can specify peer there without touching actions.

Cheers, Alan

On Fri, Mar 20, 2009 at 1:07 PM, Tomasz Ignatiuk
tomek.ignat...@gmail.comwrote:


 You can ovverride buildCriteria() method in actions. Check there
 credentials and add Criteria to it
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Admin generator : Use different Peer method according to the credential of the connected user

2009-03-20 Thread Olivier Revollat
Thanks for your answers :)I also see that you can put your peer method
directly in the generator.yml file like this :

config:
  list:
peer_method: myOwnPeerMethod

I work, but I think their is some pb with filter now ...

2009/3/20 Alan Bem alan@gmail.com

 Use *your_module*GeneratorConfiguration.class.php. Its PHP based generator
 configuration.
 U can specify peer there without touching actions.

 Cheers, Alan


 On Fri, Mar 20, 2009 at 1:07 PM, Tomasz Ignatiuk tomek.ignat...@gmail.com
  wrote:


 You can ovverride buildCriteria() method in actions. Check there
 credentials and add Criteria to it



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---