Im using the Zend Framework v1.11.0 on a Windows machine running the Xampp 1.7.1 package.My project directory structure is as follows.
/
|- /data
| |- /logs
| |- /uploaded-files
| |- /tmp
|- /htdocs
|- /include
| |- /Controllers
| |- /Zend
|- /templates
I have the following code in my index.php located in htdocs :
<?php
require_once('Zend/Loader.php');
Zend_Loader::registerAutoload();
$controller = Zend_Controller_Front::getInstance();
$controller->setControllerDirectory('../include/Controllers');
$controller->dispatch();
?>
The error i get is as follows :
Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in C:\xampp\htdocs\myproject\include\Zend\Loader.php on line 266
Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (error)' in C:\xampp\htdocs\myproject\include\Zend\Controller\Dispatcher\Standard.php:248 Stack trace:
#0 C:\xampp\htdocs\myproject\include\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#1 C:\xampp\htdocs\myproject\htdocs\index.php(8): Zend_Controller_Front->dispatch()
#2 {main} thrown in C:\xampp\htdocs\myproject\include\Zend\Controller\Dispatcher\Standard.php on line 248
My .htaccess file located in myproject/htdocs :
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
In my apache httpd.conf i have the following VirtualHost defined:
<VirtualHost myproject:80>
ServerName myproject
DocumentRoot "c:/xampp/htdocs/myproject/htdocs"
<Directory "c:/xampp/htdocs/myproject/htdocs">
AllowOverride None
Options All
</Directory>
php_value include_path ".;c:/xampp/htdocs/myproject/include;c:/xampp/php/PEAR"
php_value magic_quotes_gpc off
php_value register_globals off
</VirtualHost>
What could be going wrong here ?
Please Help Thank You