cheese
version 1.3
奶酪是一个轻巧的PHP框架,请遵循以下说明:
安装奶酪可以通过两种方式完成
前往[github.com/cheeseframework](
git clone https://github.com/CheeseFramework/cheese <IfModule mod_rewrite.c>
Options -Multiviews
RewriteEngine On
RewriteBase /cheese/public
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
</IfModule>
默认情况下,RewriteBase设置为 /奶酪 /公共。
将其更改为:
<IfModule mod_rewrite.c>
Options -Multiviews
RewriteEngine On
RewriteBase /your_directory/public
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
</IfModule>
前往那里的配置目录,您将找到一个config.php文件打开它并编辑它。例子:
// Database config section
define ( DB_HOST , ' localhost ' );
define ( DB_USER , ' root ' );
define ( DB_PASS , ' 123456 ' );
define ( DB_NAME , ' cheese ' );
// Site config section
define ( APPROOT , dirname ( dirname ( __FILE__ )));
define ( URLROOT , ' http://localhost/cheese ' );
define ( SITENAME , ' Welcome to Cheese ' );
define ( APPVERSION , ' v1.3.0 ' );
// Core control
define ( CONTROLLER , ' Pages ' );
define ( METHOD , ' index ' );
阅读更多