YII目錄結構解釋

2021-06-02 10:46:09 字數 1168 閱讀 8142

testdrive/

index.php web 應用入口指令碼檔案

assets/ 包含公開的資源檔案

css/ 包含 css 檔案

images/ 包含檔案

themes/ 包含應用主題

protected/ 包含受保護的應用檔案

components/ 包含可重用的使用者元件

mainmenu.php 'mainmenu' 掛件類

identity.php 用來認證的 'identity' 類

views/ 包含掛件的視**件

mainmenu.php 'mainmenu' 掛件的視**件

config/ 包含配置檔案

console.php 控制台應用配置

main.php web 應用配置

controllers/ 包含控制器的類檔案

sitecontroller.php 預設控制器的類檔案

models/ 包含模型的類檔案

loginform.php 'login' 動作的表單模型

contactform.php 'contact' 動作的表單模型

runtime/ 包含臨時生成的檔案

views/ 包含控制器的檢視和布局檔案

layouts/ 包含布局視**件

main.php 所有檢視的預設布局

site/ 包含 'site' 控制器的視**件

contact.php 'contact' 動作的檢視

index.php 'index' 動作的檢視

login.php 'login' 動作的檢視

system/ 包含系統視**件

yii 目錄結構

testdrive index.php web 應用入口指令碼檔案 index test.php 功能測試使用的入口指令碼檔案 assets 包含公開的資源檔案 css 包含 css 檔案 images 包含檔案 themes 包含應用主題 protected 包含受保護的應用檔案 yiic yii...

yii目錄結構

yii框架開發乙個專案的通用目錄結構 testdrive index.php web 應用入口指令碼檔案 assets 包含公開的資源檔案 css 包含 css 檔案 images 包含檔案 themes 包含應用主題 protected 包含受保護的應用檔案 yiic yiic 命令列指令碼 yi...

yii的目錄的解釋

以下是專案的目錄 assets 方便模組化 專案下的css樣式最好放在此目錄下 css css樣式 專案下的最好放在此目錄下 images 最為重要mvc都要寫在此目錄下 protected 專案的 寫在這裡 以下是protected的目錄 config下的main.php是配置資料庫的密碼 con...