Hello List,

I have got some very strange problem when running Zend_Layout.

First of all I would like to give some code to you:

<code name="index.php">
error_reporting(E_ALL);

require_once('configuration.php');

// Initialise Zend_Layout's MVC helpers
Zend_Layout::startMvc(array(
    'layoutPath' =>
CONTROLLER_DIRECTORY.PROJECT_NAME.DIRECTORY_SEPARATOR.'/Views/Layouts')
);

$ZendMVC = Zend_Controller_Front::getInstance();

$ZendMVC->setControllerDirectory(array(
    'default' =>
CONTROLLER_DIRECTORY.PROJECT_NAME.DIRECTORY_SEPARATOR.'Controller')
);

$ViewActionHelper =
Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$ViewActionHelper->setViewBasePathSpec(':moduleDir/Views');
$ViewActionHelper->setViewSuffix('html');

$ZendMVC->setBaseUrl('/msg');

$ZendMVC->dispatch();
</code>

You could see that I set my layoutPath for Zend_Layout finding my layouts.
If I run this with Zend Professional Studio for Eclipse I got every
time an error that some file could not be opened.
Error message:
Debug Warning: /Project/Library/External/Zend/Loader.php line 160 -
fopen(C:\Sourcen\Eclipse
Workspace\Project\Controller\Project\Views\helpers\Layout.php) [<a
href='function.fopen'>function.fopen</a>]: failed to open stream: No
such file or directory

I have debugged some time to find the problem but it is still not
completely clear to me where that wrong path came from.
This only occures if I use Zend Studio, if I run this directly in
Apache there would be no log generated. It just works.

Maybe for Matthew or Ralph this would just be a laugth but it is still
difficult for me to get the whole thing.
-- 
Mit freundlichen Grüßen
With best regards

Wolfgang Forstmeier
-------------------------------------------
+49° 34' 26.76", +11° 0' 48.60"
-------------------------------------------
mailto:[EMAIL PROTECTED]

Reply via email to