Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/09/2010, 17:28
GustavoV
 
Fecha de Ingreso: marzo-2006
Mensajes: 47
Antigüedad: 18 años, 1 mes
Puntos: 0
Varios Bootstrap en Zend Framework

Hola he intentado usar varios bootstrap en mi aplicacion (el principal y uno por cada modulo, el default y el admin) pero de esta forma se queda esperando que reaccione el servidor y pasado el tiempo maximo me sale el siguiente error:
Código PHP:
Fatal errorAllowed memory size of 134217728 bytes exhausted (tried to allocate 22 bytesin C:xamppphpPEARZendApplicationBootstrapBootstrapAbstract.php on line 122 
Si elimino el bootstrap del modulo admin funciona correctamente.
Mi pregunta es si es correcto usar varios bootstrap o deveria encarar el asunto por otro lado.
Dejo un ejemplo basico para que se entienda mi duda.

Desde ya muchas gracias.

Mi estructura modular:
--application
---------layouts
--------------default.phtml
---------models
---------modules
---------------default
--------------------controllers
--------------------views
--------------------bootstrap.php
---------------admin
--------------------controllers
--------------------views
--------------------bootstrap.php
----------bootstrap.php

mi application.ini es:
Código PHP:
[production]
phpSettings.display_startup_errors 1
phpSettings
.display_errors 1
;includePaths.library APPLICATION_PATH "/../library"
bootstrap.path APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace "Application"
resources.frontController.controllerDirectory APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions 0

resources
.frontController.moduleDirectory APPLICATION_PATH "/modules"
resources.modules[] = ""

resources.layout.layoutpath APPLICATION_PATH "/layouts"
resources.layout.layout "default"
resources.view[] = ""
[staging production]

[
testing production]
phpSettings.display_startup_errors 1
phpSettings
.display_errors 1

[development production]
phpSettings.display_startup_errors 1
phpSettings
.display_errors 1
resources
.frontController.params.displayExceptions 
Mi bootstrap del modulo default es:
Código PHP:
<?php
class Default_Bootstrap extends Zend_Application_Bootstrap_Bootstrap{
    protected function 
_initConfigView(){
        
$this->bootstrap('view');
        
$view $this->getResource('view');
        
$view->headTitle('SITIO');
    }
}
Mi bootstrap del modulo admin es:
Código PHP:
<?php
class Admin_Bootstrap extends Zend_Application_Bootstrap_Bootstrap{
    protected function 
_initConfigView(){
        
$this->bootstrap('view');
        
$view $this->getResource('view');
        
$view->headTitle('ADMIN');
    }
}
Mi bootstrap de la aplicacion es:
Código PHP:
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap{
    protected function 
_initConfigView(){
        
$this->bootstrap('view');
        
$view $this->getResource('view');
        
$view->doctype('XHTML1_STRICT');
    }
}