В чем может быть проблема? Пишет: Ошибка 403.
Ниже приведу код контроллеров и views'ов, а так же файла .htaccess :
Код контроллера индексации:
<?php
require_once 'Zend/Controller/Action.php';
class IndexController extends Zend_Controller_Action {
public function indexAction() {
}
}
Код контроллера ошибок:
<?php
require_once 'Zend/Controller/Action.php';
class ErrorController extends Zend_Controller_Action {
public function errorAction() {
}
}
Код views'а файла index.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xml:lang="ru" id="html">
<head>
<title>I LOVE ZEND FRAMEWORK!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
Testing.
</body>
</html>
Код views'а файла error:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xml:lang="ru" id="html">
<head>
<title>I LOVE ZEND FRAMEWORK!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
Some error happened!
</body>
</html>
Код файла .htaccess:
RewriteEngine on
RewriteBase /
RewriteRule .*$ index.php [L]
Код файла index.php (..localhost\public\index.php):
<?php
set_include_path('w:\domains\localhost\libs');
require_once 'Zend/Controller/Front.php';
Zend_Controller_Front::run('w:\domains\localhost\applications\controllers');