06/01/2010, 11:10
|
| | | Fecha de Ingreso: enero-2010 Ubicación: Medellin
Mensajes: 5
Antigüedad: 14 años, 10 meses Puntos: 0 | |
Respuesta: Ayuda con modulo zend framework 1.9 Hola que pena estoy un poco confundida, cuando te refieres al Boostrap.php de los modulos te refieres a que cada modulo debe tener uno este es el que tengo.
<?php
/**
* Application bootstrap
*
* @uses Zend_Application_Bootstrap_Bootstrap
* @package QuickStart
*/
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
/**
* Bootstrap autoloader for application resources
*
* @return Zend_Application_Module_Autoloader
*/
protected function _initAutoload()
{
$autoloader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => dirname(__FILE__),
));
return $autoloader;
}
/**
* Bootstrap the view doctype
*
* @return void
*/
protected function _initDoctype()
{
$this->bootstrap('view');
$view = $this->getResource('view');
$view->doctype('XHTML1_STRICT');
}
}
y este es mi application.ini
[production]
resources.modules[] =
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
phpSettings.date.timezone = "UTC"
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
resources.frontController.controllerDirectory = APPLICATION_PATH "/modulos/default/controllers"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
resources.layout.layout = layout
resources.view[] =
resources.view.basePath = APPLICATION_PATH "/views/"
;Modules config
resources.frontController.addControllerDirectory = APPLICATION_PATH "/modulos/prueba/controllers"
resources.frontController.addModuleDirectory = APPLICATION_PATH "/modulos"
resources.frontController.defaultModule = "default"
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
Gracias por tu ayuda.... |