Symfony2(待續)

列出目錄結構 (項目名稱是sf)php

sfcss

   |-app  #配置文件web

      |-Resources數據庫

      |-cache bootstrap

      |-config    #配置app

        |-config.ymlxml

        |-config_dev.yml開發

        |-config_prod.ymlit

        |-config_test.ymlio

        |-parameters.ini  #配置數據庫的連接

      |-logs   

      |-AppCatch.php

      |-AppKernel.php   #自定義的Bundle 註冊到Symfony中

      |-autoload.php    #自動加載類庫和類,自定義空間

      |-bootstrap.php.cache

      |-check.php   

      |-console

      |-phpunit.xml.dist

   |-bin

   |-src            #最主要的文件存放位置control+view+實體類  

      |-Dp

        |-DriverplusBundle

          |-Controller

          |-DependnecyInjection

          |-Entity 

            |- 

          |-Resources

            |-config

              |doctrine

              |-routing.yml  #配置route 每當新建一個contoller的時

              |-services.yml

            |-doc

            |-public      #此應用的文件

               |-css

               |-images

               |-js

            |-translations

            |-views   #前臺視圖  

          |-Tests

          |-DpDriveplusBundle.php

   |-vendor

   |-web

      |-app.php    #生產環境

      |-app_dev.php  #開發環境

      |-config.php  #檢查sf的環境

相關文章
相關標籤/搜索