Hi Pablo,

Thanks for your answer !
I understand that point of view, and I agree with it too :)
I was just thinking of "convenient" ways of doing things, shortcuts if
you want.
For now I'll continue to learn Symfony2, but after that I'll do as you
advised me to : extend the classes in order to speed development a bit
with lots of shortcuts.

Thank you again !

Renaud


On 1 déc, 00:48, Pablo Díez <pablo...@gmail.com> wrote:
> The answer for the three points is: that's the default way, but like one of
> the principles of Symfony2 is to be flexible, you can overwrite that
> behaviors with your own classes extending the Symfony2 classes and do it
> like you want.
> Although don't worry, really the default way is better than oneself think in
> the beginning!
>
> Pablo
>
> On Mon, Nov 29, 2010 at 7:22 PM, Lideln <lid...@gmail.com> wrote:
> > Hi there,
>
> > I just read the entire Symfony 2 quick tour. I found many useful and
> > smart things, which are great !
> > But I also wondered about a few (tiny) things, that are more about
> > ease of use.
> > Hope I get an answer here :)
>
> > 1) I'm sorry that we lost the ability to "return nothing" in the
> > action (which would default to a specific template). Instead now, we
> > have to write "$this->render('HelloBundle:Hello:index', array('name'
> > => $name));", which is long and useless. I think the SF1.4 way was
> > quicker. (but I am definitely fond of the arguments-like new way of
> > dealing parameters :) )
>
> > 2) Can't we define layouts in view.yml anymore ? Do we have to use "<?
> > php $view->extend('HelloBundle::layout') ?>" in every single view ?
>
> > 3) Is there a shortcut like "$view->render('hello')" (that would
> > default the namespace to the current one, if not specified) ?
>
> > These are just tiny thoughts (and other ones that were even tinier so
> > I did not bother to write them), but as much as I find the SF2
> > features awesome, I find it a bit more complex to use (but maybe it's
> > also a question of habit).
>
> > Thank you for your answers :)
>
> > A humble SF user.
>
> > --
> > 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
>
> --
> *Pablo Díez | @pablodip*
> MondonGO Lead Developerhttp://mondongo.es

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