0
votes

I'm trying to use a View helper inside a view. I put

echo $this->formCheckbox('foo');

in the view, but it errors out and tells me FormCheckbox.php

/application/modules/user/views/helpers/FormCheckbox.php can't be found.

Why isn't it loading Zend_View_Helper_FormCheckbox in /Zend/View/Helper? The manual states

The default helper path always points to the Zend Framework view helpers, i.e., 'Zend/View/Helper/'. Even if you call setHelperPath() to overwrite the existing paths, this path will be set to ensure the default helpers work.

1
Can you post your view initialisation/bootstrap code? - David Snabel-Caunt
pastebin.ca/1701783, and I have nothing in my bootstrap.php - user191363

1 Answers

0
votes

To use helpers in my views I use:

<?= $this->LinkTo('css/general/screen.css'); ?>

Is your helper 'FormCheckbox' with a capital F?