[Solar-talk] $this->output Discussion
Rodrigo Moraes
rodrigo.moraes at gmail.com
Thu Sep 13 09:27:27 CDT 2007
On 9/13/07, Raymond Kolbe wrote:
> Yeah I did think about readability/documentation.
>
> Also, I adopted (a while back) your method of using an array to hold
> the forms...I like it ;-)
Yeah, for common variables I think it is worth.
Once I thought it would be a good idea to override
Solar_Controller_Page's __set() / __get(), but after some time I
concluded that Solar do the right thing forcing declared variables. It
is a best practice and a Good Thing (tm), and it is up to the
developer to override it, if wanted. Maybe for fast developing /
prototyping you could just override __set() / __get(), and then at
some point revert it and define the proper variables.
One more note, in case it was not clear: in the $this->output idea,
you should assign $this->output to the view in _preRender(), because
the view object won't be available for actions or anything else before
_render().
-- rodrigo
More information about the Solar-talk
mailing list