我下载了 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>