PHP code example of feehi / cms-core
1. Go to this page and download the library: Download feehi/cms-core library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
feehi / cms-core example snippets
bash
cd /path/to/cms
php ./yii serve
#至此启动成功,可以通过localhost:8080/和localhost:8080/admin来访问了,在线安装即访问localhost:8080/install.php
bash
server {
server_name localhost;
root /path/to/frontend/web;
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$args;
location ~ /api/(?!index.php).*$ {
rewrite /api/(.*) /api/index.php?r=$1 last;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;