[symfony-users] Doctrine Admin Generator

2010-07-14 Thread galileo
I have question

how in admin generator add credentials to forms in edit or new

for example i have


new:
  display:
 Something:  [ great ]
  fields:
great: { credentials:[admin_credential]}


It dosn't working this field is allways displayed any reason ?

Symfony 1.4 with standard sfDoctrinePlugin doctrine 1.2

Hope for any answer how to do that

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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: Doctrine Admin Generator

2010-07-14 Thread galileo
You have misunderstand me :)

i need display form fields only for those users that have needed
credentials not the whole actions :) for you knowladge
it is possible to define the actions credentials in the
generator.yml :P

it is

generator:
  class: sfDoctrineGenerator
  param:
model_class:   incReport
theme: admin
non_verbose_templates: true
with_show: false
singular:  ~
plural:~
route_prefix:  inc_report
with_doctrine_route:   true
actions_base_class:sfActions
config:
  actions:
edit:
  credentials: [ editReport ]
show:
  credentials: [ showReport ]

  form:
fields:
  some_field:
 credentials: [editReport]-  THIS IS WHAT
I NEED i CAN'T FIGURE how to get this :)

On 14 Lip, 23:17, pghoratiu pghora...@gmail.com wrote:
 AFAIK you can not specify security settings in generator.yml only in
 config/security.yml
 There you have to specify the action name and the credentials required
 to access the action,
 see more info here:http://www.symfony-project.org/reference/1_4/en/08-Security

     gabriel

 On Jul 14, 11:58 pm, galileo galileo...@gmail.com wrote:

  I have question

  how in admin generator add credentials to forms in edit or new

  for example i have

  new:
    display:
       Something:  [ great ]
    fields:
      great: { credentials:[admin_credential]}

  It dosn't working this field is allways displayed any reason ?

  Symfony 1.4 with standard sfDoctrinePlugin doctrine 1.2

  Hope for any answer how to do that

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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] sfPropelRouteCollection

2009-09-21 Thread galileo

Hello
it is such an possibility to define the route

{ModuleName}:
  class: sfPropelRouteCollection
  options:
model:   {ModelName}
module:  {ModuleName}
prefix_path:  {Prefix}
column:   id
with_wildcard_routes: true

and put somwhere here the method_for_criteria for object: insted of
creating a new route somthing like that

{ModuleName}_edit:
  url: /product/:id/edit.:sf_format
  class:   sfPropelRoute
  options: { model: {ModelName}, type: object, method_for_criteria:
doSelectUsers }
  param:   { module: {ModuleName}, action: edit, sf_format: html }
  requirements: { sf_method: get }

Becouse defining this kind of routes extend the routing.yml and it's
unneccessary

Please help

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---