Hello everyone,

I have developed a little site that have some modules. First I had them all in
my default controller directory, now I would like to put them into several
controller directorys to have them more seperated.

But if I do that my page occures in several errors in viewing.
First of all my page is shown twice and ends up with an loop error.

Maybe someone could find out what is going wrong here.

My bootstrap file:

<?php
//error_reporting(E_ALL);

require_once('configuration.php');

// Initialise Zend_Layout's MVC helpers
Zend_Layout::startMvc(array(
    'layoutPath' => LAYOUT_DIRECTORY)
);

$ZendMVC = Zend_Controller_Front::getInstance();

$ZendMVC->setControllerDirectory(array(
    'default'   => CONTROLLER_DIRECTORY.    'Default'
.DIRECTORY_SEPARATOR.'Controller',
    'news'      => CONTROLLER_DIRECTORY.    'News'
.DIRECTORY_SEPARATOR.'Controller'
));

$ZendMVC->registerPlugin(new MSG_Plugins_Menu());

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

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

$ZendMVC->dispatch();

-- 
Mit freundlichen Grüßen
With best regards

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

Reply via email to