cheese
version 1.3
ชีสเป็นกรอบ PHP ที่มีน้ำหนักเบาทำตามคำแนะนำด้านล่าง:
การติดตั้งชีสสามารถทำได้สองวิธี
ตรงไปที่ [github.com/cheeseframework เหมือนกัน(https://github.com/cheeseesframework/cheese,"phrameworkดาวน์โหลดเฟรมเวิร์ก "))
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 ในนั้นคุณจะพบไฟล์ 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 ' );
อ่านเพิ่มเติม