[Solar-talk] config inheritance in helpers

Jeff Surgeson solar at 3hex.com
Thu Jul 27 05:14:43 PDT 2006


Hi Rodrigo
> So, if you could take some time to review the pager helper set and
> point what is wrong with the config part, or point flaws in the
> interface, etc, it would help me a lot. Take your time, I'm not in a
> hurry. It is working and I'm happy. But...

Am trying to use your pager class.

Firstly I think there might be a error in PagerSimple.php, you have it 
including  Solar::loadClass('Solar_View_Helper') when it is extending 
Tipos_View_Helper_PagerBase, I think it needs to be 
Solar::loadClass('Tipos_View_Helper_PagerBase');

Secondly I can not get Solar to Add Tipos_View_Helper to the Stack, how do I 
get Solar to add it? 

I am trying to use your class as an external vendor helper class

So I have added the following directory structure to add Tipos

Bulldog
Bulldog_App
Bulldog_View
Bulldog_View_Helper/my helper files

Tipos
Tipos_View
Tipos_View_Helper/your pager class files

I can get it to to sort of work (with errors) if I put the helper filkes in my 
helper directory and rename the class Bulldog_

The template error:

Fatal error: Uncaught exception 'Solar_Exception' 
class::code 'Solar_Class_Stack::ERR_CLASS_NOT_FOUND' with 
message 'ERR_CLASS_NOT_FOUND' information array ( 'name' => 'Pager', 'stack' 
=> array ( 0 => 'Bulldog_App_Knives_Helper_', 1 => 'Bulldog_App_Helper_', 2 
=> 'Bulldog_View_Helper_', 3 => 'Solar_View_Helper_', ), ) Stack trace: 
#0 /var/www/localhost/htdocs/library/Solar.php(947): 
Solar::factory('Solar_Exception', Array) 
#1 /var/www/localhost/htdocs/library/Solar/Base.php(184): 
Solar::exception('Solar_Class_Sta...', 'ERR_CLASS_NOT_F...', 'ERR_CLASS_NOT_F...', 
Array) #2 /var/www/localhost/htdocs/library/Solar/Class/Stack.php(202): 
Solar_Base->_exception('ERR_CLASS_NOT_F...', Array) 
#3 /var/www/localhost/htdocs/library/Solar/View.php(378): 
Solar_Class_Stack->load('pager') 
#4 /var/www/localhost/htdocs/library/Solar/View.php(358): 
Solar_View->newHelper('pager') 
#5 /var/www/localhost/htdocs/library/Solar/View.php(291): 
Solar_View->getHelper('pager') #6 [internal function]: Solar_View 
in /var/www/localhost/htdocs/library/Solar.php on line 504

-- 
Jeff Surgeson

-- 
Jeff Surgeson


More information about the solar-talk mailing list