Hmmm....that is exactly what I wanted to avoid - writing the use_helper again and again. Anyway, I think this is the only way to do this.
Thanks and Regards Vikram On Feb 24, 7:10 pm, naholyr <[email protected]> wrote: > If you want to use a helper only in some templates and not all of > them, just use the "use_helper()" helper : > > --- > <?php use_helper('Date') ?> > Date : <?php echo format_date(time()) ?> > --- > > On 24 fév, 06:05, SeeVik <[email protected]> wrote: > > > Hello all, > > > I want to include some helpers by default in some of my templates. I > > don't want them to be loaded in all of the templates, just some of > > them. > > > I found out that [standard_helpers] setting in my settings.yml file > > has been commented out. > > > Can do something like this?.... > > > /modules/$module_name/config/view.yml > > ------------------------------------------------------- > > all: > > standard_helpers: [Form, Object, Tag] > > > Is this correct if I want to include the Form, Object and Tag helpers > > in all the templates of one of my modules? > > > Thanks and Regards > > Vikram --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
