http:/
/www.symfony-project.com/trac/ticket/374
I'd like to create a sfHelper class and move all current
helpers into
classes.
Then, for backwards compatibility, keep helperHelper and
modify it as
described to create shortcut functions in the global
namespace,
emulating the current helpers for projects that use the
current helper
functions.
Pros/Cons so far
----------------
Pros:
Namespace organization. Allow more developers to create more
helpers
without the concern of conflicting method names. Scope,
knowing which
method comes from which helper instantly.
Extensibile/Overridable. Simply create a new helper that
extends the one
you'd like to use, and add new methods or customize
existing methods.
Autoloading. There's no need to call and define your
helpers manually.
Symfony will autoload it for you.
Cons:
Clutter. More verbose method calls in template files.
Please post your thoughts, pros and cons. I will be
providing a patch to
accomplish this shortly. I would like to see this included
before 1.0 is
released.
~synace
--
To unsubscribe, e-mail: dev-unsubscribe symfony-project.com
For additional commands, e-mail: dev-help symfony-project.com
|