找不到Phalcon和url

时间:2013-09-22 17:57:32

标签: php httpd.conf phalcon

我下载了invo-master,主页面已加载,但链接不起作用,我不知道为什么..我将此行添加到httpd.conf

<VirtualHost *:80>
        ServerName phalcon
        DocumentRoot /var/www/html/invo-master/public
        <Directory /var/www/html/inv-master/public>
                DirectoryIndex index.php
                AllowOverride All
                Allow from all
        </Directory>
</VirtualHost>

我的config.ini

 [application]
controllersDir = ../app/controllers/
modelsDir      = ../app/models/
viewsDir       = /../app/views/
pluginsDir     = ../app/plugins/
libraryDir     = ../app/library/
baseUri        = /

我在index.php中的加载程序

 $loader->registerDirs(
        array(
            $config->application->controllersDir,
            $config->application->pluginsDir,
            $config->application->libraryDir,
            $config->application->modelsDir,
        )
    )->register();

的.htaccess

 AddDefaultCharset UTF-8

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
</IfModule>

0 个答案:

没有答案