[Solar-talk] config inheritance in helpers

Rodrigo Moraes rodrigo.moraes at gmail.com
Thu Jul 27 05:45:12 PDT 2006


On 7/27/06, Jeff Surgeson wrote:
> I did that and know get the following warnings and errors
>
> Notice: Undefined index: options
> in /var/www/localhost/htdocs/library/Bulldog/View/Helper/PagerBase.php on
> line 104
>
> Warning: array_merge() [function.array-merge]: Argument #2 is not an array
> in /var/www/localhost/htdocs/library/Bulldog/View/Helper/PagerBase.php on
> line 104
>
> Notice: Undefined index: decorator
> in /var/www/localhost/htdocs/library/Bulldog/View/Helper/PagerBase.php on
> line 118
>
> Fatal error: Method name must be a string
> in /var/www/localhost/htdocs/library/Bulldog/View/Helper/PagerBase.php on
> line 120

Oh, it's related to the config merged manually. So I've added a check
before the merge. I've fixed those and reuploaded the file, also
fixing the loadClass() problem in PagerSimple.

Also... I've added another pager adapter: Sliding (my favorite from
Pear::Pager). :-D

> 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.

Well, they are still "my vendor" helpers... so that's why I haven't
renamed the vendor namespace to 'Solar'... But to make things easier
for you, now they use 'Solar_' instead.

> Paul mayby you can throw some light on it?
I think the solution exists: use vendor namespaces, or adapt to yours.
I prefer to never use the Solar namespace. Well, just to keep Solar
"pure". ;-)

rodrigo


More information about the solar-talk mailing list