On Thu, Jul 3, 2008 at 11:00 AM, Bernhard Schussek <[EMAIL PROTECTED]> wrote: > I don't like the $h idea. It's complicated to understand for new > developers, the extra squared brackets and quotes add unnecessary > complexity and are prone to errors and last but not least, the array > syntax is totally misused. > > IMO we should opt for the most simple, but most obvious solution: By > simply defining the objects in the template. > > <?php $Url = new sfUrlHelper ?>
you are right, this solution is better. There's not much difference between <?php load_helper('url') ?> and <?php $url = new sfUrlHelper() ?> the only issue i see is that if you override the sfUrlHelper, you have to change the instanciation in every template. ++ tristan -- Tristan Rivoallan http://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 219 219 33 Tél: +33 1 53 34 66 10 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---