[Solar-talk] controller helpers, maybe?
Rodrigo Moraes
rodrigo.moraes at gmail.com
Mon Jul 9 14:23:25 CDT 2007
2007/7/9, Paul M Jones:
> We might want to call them
> "plugins" instead of "helpers", if only to keep the vocabulary
> distinct. I can think of a couple situations I'm in right now where
> this would help immensely.
Other thought: for view helpers the name possibilities are limited by
the public methods available in Solar_View, so view helper names have
a small chance to collide with Solar_View method names (e.g., a
escape() helper) . The same wouldn't be true for action helpers: a
redirect() helper with some different redirect functionality woudln't
work in a controller which already has a method redirect(). Result:
collision, hell of renaming action helpers etc.
One solution is to use a prefix, so developers should not name their
methods using the prefix; other is to provide a interface to access
controller helpers (and not __call()), which perhaps would be more
clear and intuitive. What do you think?
-- rodrigo
More information about the Solar-talk
mailing list