[Solar-talk] Rename "form" helper?

Antti Holvikari anttih at gmail.com
Mon Jul 17 14:01:21 PDT 2006


On 7/17/06, Paul M Jones <pmjones at ciaweb.net> wrote:
> Hi all --
>
> A lot of my controllers use $form as a Solar_Form object that gets
> assigned to the view.  This leads to things like ...
>
>      echo $this->form($this->form);
>
> ... in the view scripts, which is a little confusing.  Technically
> you can use a different name than "form" for your variable, but
> "form" seems to be a common convention and it makes sense by itself.
>
> With that in mind, perhaps the helper ought to be renamed (maybe
> "$this->quickForm(...)").
>
> Any thoughts on this?

I'd stick with $this->form(). Shorter method names are so "Solary"
:-). Let the developer rename the variables. I find myself using a
variable name like "pform" or "uform" to indicate what the form does.

Cheers!

-- 
Antti Holvikari


More information about the solar-talk mailing list