Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/01/2009, 13:16
Avatar de jerkan
jerkan
 
Fecha de Ingreso: septiembre-2005
Mensajes: 1.607
Antigüedad: 18 años, 7 meses
Puntos: 19
zend framework mod rewrite

Hola, tengo un nuevo contratiempo con el zend framework. Mi problema es que no me redirige el trafico al index.php cuando debiera. Creo que es por la estructura de directorios que la he cambiado un poco:
Código PHP:
/ZendFrameworkQuickstart
/ZendFrameworkQuickstart/index.php (redirect to public/index.php)
/
ZendFrameworkQuickstart/application
/ZendFrameworkQuickstart/public
/
ZendFrameworkQuickstart/public/index.php
/ZendFrameworkQuickstart/public/.htaccess
/library/Zend 
El htacces está así (es lo que viene en el tutorial):
Código PHP:
RewriteEngine On
RewriteCond 
%{REQUEST_FILENAME} -[OR]
RewriteCond %{REQUEST_FILENAME} -[OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule 
^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L
El mod_rewrite está activado (comprobado en otros proyectos y en el phpinfo.

El bootstrap.php empieza así:
Código PHP:
<?php
// APPLICATION CONSTANTS - Set the constants to use in this application.
// These constants are accessible throughout the application, even in ini 
// files. We optionally set APPLICATION_PATH here in case our entry point 
// isn't index.php (e.g., if required from our test suite or a script).
defined('APPLICATION_PATH')
    or 
define('APPLICATION_PATH'dirname(__FILE__));

defined('APPLICATION_ENVIRONMENT')
    or 
define('APPLICATION_ENVIRONMENT''development');

// FRONT CONTROLLER - Get the front controller.
// The Zend_Front_Controller class implements the Singleton pattern, which is a
// design pattern used to ensure there is only one instance of
// Zend_Front_Controller created on each request.
$frontController Zend_Controller_Front::getInstance();

// CONTROLLER DIRECTORY SETUP - Point the front controller to your action
// controller directory.
$frontController->setControllerDirectory(APPLICATION_PATH '/controllers');
Any help?