Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/03/2011, 12:14
Avatar de mckfly
mckfly
 
Fecha de Ingreso: marzo-2011
Ubicación: Colombia
Mensajes: 3
Antigüedad: 13 años, 1 mes
Puntos: 0
Fatal error: Class 'Zend_Form' not found in...

Buenos días.

He estado intentando trabajar con Zend Framework, pero al tratar de mostrar un formulario, me aparece el siguiente error:

Fatal error: Class 'Zend_Form' not found in C:\xampp\htdocs\prueba\application\formularios\Agr egarUsuariosForm.php on line 2

Las caracteristicas de las herramientas con las que me encuentro trabajando son las siguientes:

ZendFramework-1.11.3
Servidor: XAMPP para Windows Version 1.7.0 (con php 5.2.8)
IDE : NetBeans 6.9.1
PHP 5 Interpreter C:\xampp\php\php.exe
Zend script C:\xampp\php\PEAR\Zend\bin\zf.bat
Variable de Ususario (path): C:\xampp\php
Directorio de la aplicación: C:\xampp\htdocs\prueba
Directorio de las librerías: C:\xampp\htdocs\prueba\library\Zend

application.ini
Cita:
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
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.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
[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
http://localhost/prueba/public/index.php
Código PHP:
// Define path to application directory
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'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    
realpath(APPLICATION_PATH '../library'),
    
get_include_path(),
)));

/** Zend_Application */
require_once 'Zend/Application.php';

// Create application, bootstrap, and run
$application = new Zend_Application(
    
APPLICATION_ENV,
    
APPLICATION_PATH '/configs/application.ini'
);
$application->bootstrap()
            ->
run(); 
include_path
.;C:\xampp\php\PEAR\Zend\library;C:\xampp\php\pear \

Nota:
No me gustaría tener que modificar el include_path en el php.ini, porque no me gustaría tener problemas al momento de migrar a un host compartido.

Agradezco Su colaboración y disculpas por la molestia, porque seguramente el error es por algún descuido que he tenido.