Matt
Apologies the stuff I needed was in the docs.
However still no joy, this is my stack output for the view - and I
assume if the new path was registered correctly then it would show up in
here
Zend_View Object
(
[_path:private] = Array
(
[script] = Array
-- Ian Warner [EMAIL PROTECTED] wrote
(on Monday, 21 January 2008, 12:24 PM +):
However still no joy, this is my stack output for the view - and I assume
if the new path was registered correctly then it would show up in here
snip
Registering the path - tried in controller and a few other
Matt
Thanks for your patience and persistance :)
That indeed worked. I utilised the first method. As I am basically
creating an area for global helpers - actually mostly for Facebook
Common Tasks such as there Form rendering and other components such as
the Wall.
Is there a repository of
hi
I am having real trouble trying to set helper paths.
I assume I can place this anywhere in my code structure - I have tried
in bootstrap / controllers and a few other places
Pathing - I think I have this correct below though I although I have
changed this any which way but loose.
Hello Ian,
Try to use the addHelperPath() method.
Regards,
Ádám
On Jan 20, 2008 1:21 PM, Ian Warner [EMAIL PROTECTED] wrote:
hi
I am having real trouble trying to set helper paths.
I assume I can place this anywhere in my code structure - I have tried
in bootstrap / controllers and a few
Hi Ian,
I think that you should use the $view-addHelperPath() function.
Regards,
Pieter Kokx
Ian Warner schreef:
hi
I am having real trouble trying to set helper paths.
I assume I can place this anywhere in my code structure - I have tried
in bootstrap / controllers and a few other places
Sorry I should have said that I tried that also.
Still no luck
Pieter wrote:
Hi Ian,
I think that you should use the $view-addHelperPath() function.
Regards,
Pieter Kokx
Ian Warner schreef:
hi
I am having real trouble trying to set helper paths.
I assume I can place this anywhere in my
-- Ian Warner [EMAIL PROTECTED] wrote
(on Sunday, 20 January 2008, 01:00 PM +):
Sorry I should have said that I tried that also.
Still no luck
I use code like the following code regularly:
$view-addHelperPath('path/to/My/View/Helper', 'My_View_Helper');
and it works fine. Can you
Matt
$view = new Zend_View();
// Add /other/path/to/helpers with class prefix 'Your_View_Helper'
$view-setHelperPath('D:\AWebEnvironment\htdocs\Site_Template\library\Zend\View\Helper',
'Common_Components');
I have tried the above and also with addHelperPath and still no
The File name should be HelperName.php.
2008/1/20, Ian Warner [EMAIL PROTECTED]:
Matt
$view = new Zend_View();
// Add /other/path/to/helpers with class prefix
'Your_View_Helper'
$view-setHelperPath('D:\AWebEnvironment\htdocs\Site_Template\library\Zend\View\Helper',
-- Ian Warner [EMAIL PROTECTED] wrote
(on Sunday, 20 January 2008, 07:54 PM +):
$view = new Zend_View();
// Add /other/path/to/helpers with class prefix 'Your_View_Helper'
$view-setHelperPath('D:\AWebEnvironment\htdocs\Site_Template\library\Zend\View\Helper',
11 matches
Mail list logo