Código PHP:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 22 bytes) in C:xamppphpPEARZendApplicationBootstrapBootstrapAbstract.php on line 122
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 = 1
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');
}
}
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');
}
}
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');
}
}