Don't try to put to much "view" things into the form, most of your problems
can be addressed by using raw html into templates.

Now if you need some cross link application feature you can use this plugin
: http://www.symfony-project.org/plugins/swCrossLinkApplicationPlugin
<http://www.symfony-project.org/plugins/swCrossLinkApplicationPlugin>

On Wed, Mar 10, 2010 at 4:21 PM, Steve Sanyal <steve.san...@gmail.com>wrote:

> Forms have dependencies on their widget, validator, help and error
> message information.  I found that specifying these dependencies in
> code was a lot more difficult to maintain - specifically for the
> message information.
>
> To solve this I created a helper class that injects the message
> information into each form.  This has worked out well.
>
> However, I've also now run into some cases where the messages may need
> some code to run (eg: I need to put a link in the message, for which I
> need a routing lookup).
>
> Right now, my codebase has these kinds of messages directly in the
> form code.  However, I ran into an issue with this - my backend app
> was no longer compatible since the routing for the app was different.
> To work around this, I just used the base form in my admin app rather
> than the subclass.
>
> Since form dependency information seems to be tied to the application,
> would it not make sense to have a generalized dependency injection
> mechanism to address this issue in the framework?  Has anyone else
> come across this?
>
> Cheers,
> Steve
>
> --
> 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<symfony-users%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Thomas Rabaix
http://rabaix.net

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

Reply via email to