[Solar-talk] Rename "form" helper?
Paul M Jones
pmjones at solarphp.com
Tue Jul 18 14:48:11 PDT 2006
On Jul 17, 2006, at 4:01 PM, Antti Holvikari wrote:
> 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.
Fair enough. :-)
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list