[Solar-talk] Helper stack

Paul M Jones pmjones at solarphp.com
Sat Jul 22 09:11:05 PDT 2006


On Jul 22, 2006, at 11:02 AM, Rodrigo Moraes wrote:

> On 7/22/06, Paul M Jones wrote:
>> The offending portion is in Solar/Controller/Page.php lines 404 and
>> 474; change -$pos to $pos (minus to plus).  Am fixing in SVN now.
>> Let me know if that works for you.
>
> Yes, now the helper stack is the expected one. Hm, I'll bench both
> approachs and maybe with a 1 billion loops I'll get a half second
> difference. :-)

Heh.  You never know...


> And, uh. I haven't noticed before the similarities between _getView()
> and _getLayout()... it seems they are candidates for a future
> refactoring. But just don't mind about them right now. :-)

Yeah, clearly -- but as you say, not right now.  One thing to  
remember is that they need to be different methods so that users can  
override them separately (same as with _preAction(), _postAction(),  
etc).


--

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