yup, it worked... thanx!
public function __construct($application)
{
$this->setApplication($application);
$key = strtolower($this->getModuleName());
if ($application->hasOption($key)) {
// Don't run via setOptions() to prevent duplicate
initialization
//$this->setOptions($application->getOption($key));
} else {
//$this->setOptions($application->getOptions());
}
$this->initResourceLoader();
}
keith Pope-4 wrote:
>
> Sounds like you are experiencing this bug:
>
> http://framework.zend.com/issues/browse/ZF-6183
>
> It is easily fixed editing the Zend_Application_Module_Bootstrap and
> removing the call to setOptions, I assume this will be fixed later, I
> think the guys are up against it trying to get all this done, please
> be patient :)
>
> Thx
>
> Keith
>
> 2009/4/7 Marko Korhonen <[email protected]>:
>>
>> So,
>> adding line:
>> resources.modules =
>>
>> this causes that code runs for a while, and then there is just a blank
>> page?
>>
>> I use Zend_Application from the trunk (moved today from incubator)
>>
>> if I use _initModules function in my bootstrap it works fine...
>>
>> br, Marko
>>
>>
>>
>> keith Pope-4 wrote:
>>>
>>> See below:
>>>
>>> 2009/4/7 Marko Korhonen <[email protected]>:
>>>>
>>>> Hi,
>>>>
>>>> How is the build-in resource "Modules" activated in INI file?
>>>>
>>>> I have already other resources working nicely:
>>>>
>>>> autoloadernamespaces.0 = "Zend_"
>>>> autoloadernamespaces.1 = "My_"
>>>>
>>>> phpsettings.display_errors = 0
>>>> phpsettings.error_reporting = 8191
>>>> phpsettings.date.timezone = "Europe/Helsinki"
>>>>
>>>> bootstrap.path = APPLICATION_PATH"/Bootstrap.php"
>>>>
>>>> resources.frontcontroller.moduledirectory = APPLICATION_PATH"/modules"
>>>> resources.frontcontroller.defaultmodule = "default"
>>>> resources.frontcontroller.throwerrors = true
>>>> resources.frontcontroller.params.prefixDefaultModule = false
>>>> resources.frontcontroller.baseUrl = /apumatti
>>>> resources.frontcontroller.env = APPLICATION_ENV
>>> resources.modules =
>>>>
>>>> resources.db.adapter = "pdo_mysql"
>>>> resources.db.params.host = "localhost"
>>>> resources.db.params.username = "username"
>>>> resources.db.params.password = "password"
>>>> resources.db.params.dbname = "my_database"
>>>> resources.db.isDefaultTableAdapter = true
>>>>
>>>>
>>>> br, Marko
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Zend_Application-modules-resource-in-INI-tp22925120p22925120.html
>>>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> ----------------------------------------------------------------------
>>> [MuTe]
>>> ----------------------------------------------------------------------
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Zend_Application-modules-resource-in-INI-tp22925120p22926165.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> ----------------------------------------------------------------------
> [MuTe]
> ----------------------------------------------------------------------
>
>
--
View this message in context:
http://www.nabble.com/Zend_Application-modules-resource-in-INI-tp22925120p22926323.html
Sent from the Zend Framework mailing list archive at Nabble.com.