[Solar-talk] request object
Paul M Jones
pmjones at solarphp.com
Wed Sep 27 15:02:35 PDT 2006
On Sep 27, 2006, at 4:55 PM, Jeff Surgeson wrote:
> However in Solar_Content_Abstract a new request object is created
> each time
> access is needed to a server request, for example,
>
> $request = Solar::factory('Solar_Request')
> $data['editor_ipaddr'] = $request->server('REMOTE_ADDR');
It might be that I shouldn't be doing that at all to begin with; I'll
take another look.
But yes, you're right, it'd be more efficient to create it the one
time as a property and then access it when needed.
Thanks for pointing this out to me, I'm betting I need to remove that
from the content domain model classes.
--
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