Yep I've done it that way, thanks Gustavo!

Also, I've never looked at editing the skeleton before; I'll check
that out to learn some new stuff too

thanks both, guys

cheers

On Aug 11, 9:39 pm, Gustavo Adrian <comfortablynum...@gmail.com>
wrote:
> The setting of the notice takes place on the action, not on the form. And
> it's generated in every module you create with the admin generator. So, as
> Alexander said, you'd need to modify the skeleton of the generated actions
> to add your functionality.
>
> On the other hand, an easier way would be to just set another session
> variable to hold your message (let's say, custom_notice), and override the
> _flashes.php partial to include it.
>
> Cheers.
>
> On Wed, Aug 11, 2010 at 3:05 AM, Alexandre Salomé <
>
> alexandre.sal...@gmail.com> wrote:
> >  Create your skeleton for admin generator.
>
> > Search documentation, I have no information on subject.
>
> > Le 11/08/10 07:48, bretth a écrit :
>
> >  Hi, I want to set a 'notice' flash in the postvalidator callback
> >> function i'm using; it will be used to display a 'notice' (ie. This
> >> object requires a Foo, so it has been unpublished').
>
> >> I can do it with the error notice, but what i'm setting is not
> >> technically an error; it's a notice. I want to use the notice flash,
> >> but it gets overridden by symfony's form processing which sets it to
> >> The item was updated successfully.
>
> >> How can I get it to display a secondary flash? Is modifying
> >> _flashes.php for that module the only way to do it? Can't I just tell
> >> symfony to append the auto generated "Item updated" flash or
> >> something?
>
> >> thanks
>
> > --
> > ---
> > Alexandre Salomé -http://alexandre.salome.fr
>
> > --
> > 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

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