[Solar-talk] helper_path
Paul M Jones
pmjones at solarphp.com
Fri May 26 05:47:54 PDT 2006
On May 26, 2006, at 5:13 AM, Jeff Surgeson wrote:
>>> By default Solar looks in Vendor_App_Class_Helper for the vendor
>>> generated helper files, can I not set a config setting that tell
>>> Solar to
>>
>> Yes, you should be able to set the 'helper_class' config key to
>> something like this (assuming a solar config file here) --
>>
>> $config['Vendor_App_Name']['helper_class'] =
>> 'Vendor_View_Helper';
>
> Does not seem to work for me , adding that to my solar.config.php
> file seems
> to not effect the class stack array at all.
>
> Question! is _Name the App name or the helper file name? eg:
App name. So for your Bulldog app-specific helpers, you would use ...
$config['Bulldog_App_Thebooknook']['helper_class'] =
'Vendor_View_Helper';
... if you have helpers in Vendor/View/Helper/* that you want to use.
> Fatal error: Uncaught exception 'Solar_Exception' class::code
> 'Solar_Class_Stack::ERR_CLASS_NOT_FOUND' with message
> 'ERR_CLASS_NOT_FOUND'
> information array ( 'name' => 'Meta', 'stack' => array ( 0 =>
> 'Bulldog_App_Thebooknook_Helper_', 1 => 'Meta_', 2 =>
> 'Solar_View_Helper_', ), )
From this, it looks like you did something like the following ...
$config['Bulldog_App_Thebooknook']['helper_class'] = 'Meta';
... which is not the proper approach.
Does this help at all?
--
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