Y no use el zend tool
Este es mi Index.php:
Código PHP:
<?php
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application/'));
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
realpath(APPLICATION_PATH . '/../library/Doctrine'),
realpath(APPLICATION_PATH . '/models'),
get_include_path(),
)));
# //Include the Doctrine ORM library
//require_once APPLICATION_PATH.'/models/doctrine/generated/doctrinegenerate.php';
/** Zend_Application */
require_once 'Zend/Application.php';
// Create application, bootstrap, and run
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/config/config.ini'
);
/*
* MEMO: Mantenemos la config del registro temporal
*/
$config = new Zend_Config_Ini( APPLICATION_PATH .'/config/config.ini', APPSTAGE );
Zend_Registry::set('config',$config);
l
ini_set( 'display_errors', $config->environment->display_errors);
ini_set( 'html_errors', $config->environment->html_errors);
ini_set( 'log_errors', $config->environment->log_errors );
ini_set( 'error_log', APPLICATION_PATH.'/logs/php.log' );
ini_set( 'error_reporting', $config->environment->error_reporting );
$application->bootstrap()