hi,
I made the same setup but I have protected function
_executeResource($resource) (in class Zend_Application_Bootstrap_Base)
running in endless loop. It loop again and again resources named
"frontcontroller" and "modules".
Below are my setup:
br, Marko
APPLICATION_PATH >> Bootstrap.php
-----
// These comes from index.php
define("LIBRARY_PATH", $library_path);
define("APPLICATION_PATH", $application_path);
define("SITE_PATH", $site_path);
defined("APPLICATION_ENV") or define("APPLICATION_ENV", "development");
// Add $library_path to the include_path
set_include_path(get_include_path() . PATH_SEPARATOR . $library_path);
require_once 'Zend/Application.php';
$application = new Zend_Application
(
APPLICATION_ENV, array
(
'bootstrap' => APPLICATION_PATH . '/bootstrap/Bootstrap.php',
'autoloadernamespaces' => array('Content'), // This is my Module
'resources' => array
(
'frontcontroller' => array
(
'moduledirectory' => APPLICATION_PATH . '/modules',
'defaultmodule' => 'default',
),
'modules' => array(),
),
'phpsettings' => array
(
'display_errors' => true,
'error_reporting' => E_ALL|E_STRICT,
'date.timezone' => 'Europe/Helsinki',
)
)
);
$application->bootstrap();
$application->run();
APPLICATION_PATH >> bootstrap/Bootstrap.php
-----
class Bootstrap extends Zend_Application_Bootstrap_Base
{
public function run()
{
$this->frontController->dispatch();
}
}
--
View this message in context:
http://www.nabble.com/Zend_Application-using-modules-tp22662478p22705687.html
Sent from the Zend Framework mailing list archive at Nabble.com.