Development

#841 (allow the use_helper() helper to accept more than one argument)

You must first sign up to be able to contribute.

Ticket #841 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

allow the use_helper() helper to accept more than one argument

Reported by: francois Assigned to:
Priority: minor Milestone: 1.0.0
Component: Version:
Keywords: Cc:
Qualification:

Description

Each time I declare more than one helper in a template, I systematically get an error because I type something like:

<?php echo use_helper('foo', 'bar') ?>

Which is incorrect and fails, because the symfony syntax stipulates that for the declaration of more than one helper, you must use use_helpers(), with a final s.

The question is: Should the symfony syntax stick more with the english grammar or with the developers reflexes? I don't ask for the banishment of use_helpers(), just for the ability of use_helper() to deal with more than one argument.

Change History

08/25/06 16:52:58 changed by slickrick

By adding this functionality, we inherrently depreciate one of the two, because there's no sense in having two methods that do the same thing. So the question is, do you want to use_helper or use_helpers? o_O :)

08/25/06 16:57:33 changed by francois

I vote for a deprecated use_helpers() for a few months, and an inclusion of a replacement of the plural for by a singular for in an upgrade script yet to be written.

08/29/06 16:01:20 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [1856]) allow the use_helper() helper to accept more than one argument (closes #841)

08/29/06 16:01:27 changed by fabien

  • milestone set to 1.0.0.