Hi all,

Seems I'm lost again...

I'm trying to create a custom view helper called "DivWrap". I've poured over the reference guide's Zend_View chapter 4 View Helpers again and again, copied and tried the examples but always receive the following exception:

Plugin by name 'DivWrap' was not found in the registry;
used paths:
Zend_View_Helper_:
Zend/View/Helper/:
Mnb/View/Helper/:
/srv/www/mnb.5/application/views/helpers/

But the last 2 lines above show that it knows where to look and is looking in the right places so addHelperPath worked.

file tree:
Mnb
|-- Controller
|   |-- Action.php
|   `-- Plugin.php
`-- View
    `-- Helper
        `-- DivWrap.php [1]

(I know the namespace is good because Mnb_Controller_Action works.)


And for good measure:
.../application/views/helpers/DivWrap.php [2]

[1]
class Mnb_View_Helper_DivWrap extends Zend_View_Helper_Abstract
{
    public function divWrap() {}
}

[2]
class DivWrap extends Zend_View_Helper_Abstract
{
    public function divWrap() {}
}

I know the functions are empty; I need to _find_ the helper first ;)

Any takers?

TIA,
Mike Wright

Reply via email to