views:

171

answers:

1

fopen(C:/xampp/htdocs/adv/application/views\helpers/Layout.php) how to fix this path?

And why does ZF is searching for bundled helpers in this folder and not in zend library folder?

By the way, here path is fine, but still searching in wrong folder

fopen(C:/xampp/htdocs/adv/application/controllers/helpers/ViewRenderer.php)

+1  A: 

ZF searches in these paths, because they are the default paths.

From the ZF Reference Guide on View Helpers

Note: Default Helper Path
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.

The second path is for ActionHelpers (as indicated by ViewRenderer) and is the default path as well. It is hardcoded into Zend_Controller_Action_HelperBroker::getPluginLoader().

The ViewHelper path doesn't have to be fixed. PHP knows how to handle directory separators, so it doesn't matter whether is is a slash or a backslash.

See the linked question and answers on how to add additional helper paths.

Gordon