[Solar-talk] config inheritance in helpers
Paul M Jones
pmjones at solarphp.com
Mon Jul 31 07:22:49 PDT 2006
On Jul 27, 2006, at 7:25 AM, Jeff Surgeson wrote:
>> It just happens that I use the vendor name Tipos, you have to
>> adapt it to
>> yours.
>
> I just thought that it would be nice that if you write a Nice Solar
> helper or
> class and make it public I should be able to include it and use it
> without
> having to rename it and dump it into my helper directories, but
> keep it
> seperate so when you release updates etc etc.
>
> Paul mayby you can throw some light on it?
In theory, you should be able to add Tipos helpers to your app by
overriding _getView() in your app class:
protected function _getView()
{
$view = parent::_getView();
$view->addHelperClass('Tipos_View_Helper');
return $view;
}
Then the Tipos view helpers get added to the stack and take precedence.
--
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