List Info

Thread: RFC - admin generator action partials




RFC - admin generator action partials
user name
2006-10-06 08:53:57
Hi

I need the flexibility to use a partial to output an action,
i think  
this is a good extension, but just want to clarify syntax.

Symfony currently uses _action to represent default action
so we  
cannot use that, so we can either:

// use two underscores for a partial action
actions:
   __myaction:    {action: action, param: ...}

// or add it as a param
actions:
   myaction:   {action: myaction, partial: myaction, param:
...}

Either way, the generator will include the partial
_myaction.php.

Fabien, any comments/preferences?

Thanks

Joe


--
To unsubscribe, e-mail: dev-unsubscribesymfony-project.com
For additional commands, e-mail: dev-helpsymfony-project.com

RFC - admin generator action partials
user name
2006-10-09 08:26:55
I don't understand. Actions in admin generator are converted
to links.

So, I don't see how the partial parameter has an impact on
the generated 
link?

Fabien

Joe Simms wrote:
> Hi
> 
> I need the flexibility to use a partial to output an
action, i think 
> this is a good extension, but just want to clarify
syntax.
> 
> Symfony currently uses _action to represent default
action so we cannot 
> use that, so we can either:
> 
> // use two underscores for a partial action
> actions:
>   __myaction:    {action: action, param: ...}
> 
> // or add it as a param
> actions:
>   myaction:   {action: myaction, partial: myaction,
param: ...}
> 
> Either way, the generator will include the partial
_myaction.php.
> 
> Fabien, any comments/preferences?
> 
> Thanks
> 
> Joe
> 
> 
> -- 
> To unsubscribe, e-mail: dev-unsubscribesymfony-project.com
> For additional commands, e-mail: dev-helpsymfony-project.com
> 
> 
> 

--
To unsubscribe, e-mail: dev-unsubscribesymfony-project.com
For additional commands, e-mail: dev-helpsymfony-project.com

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )