<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # 創建一個新的模塊 ## 創建modules步驟 1. GII ![](./img/2018-11-19_171813.png) 2. 配置文件 D:\wamp\www\weike.test\weiketest\protected\config\common.php ``` 'modules'=>array( ... 'courseCenter'=>array( 'class'=>'application.modules.courseCenter.CourseCenterModule', ) ... ); ``` 3. 控制器 D:\wamp\www\weike.test\weiketest\protected\modules\courseCenter\controllers\DefaultController.php 創建 actionIndex() 方法; 4. 訪問路徑 http://weike.test/index.php?r=courseCenter/default/index ## 創建models步驟 1. GII ![](./img/2018-11-19_173048.png) > 對于子目錄或分庫的表,使用點語法 2. 創建成功 D:\wamp\www\weike.test\weiketest\protected\models\wkxuetang\wkxtCourse.php ``` <?php class wkxtCourse extends CActiveRecord { public static function model($className=__CLASS__) { return parent::model($className); } ... public function tableName() { return 'wkxuetang.tbCourse'; } ... } ``` 3. 配置模塊配置文件 **D:\wamp\www\weike.test\weiketest\protected\modules\courseCenter\CourseCenterModule.php** ``` <?php class CourseCenterModule extends CWebModule { public function init() { ... $this->setImport(array( 'courseCenter.models.*', 'courseCenter.components.*', 'application.models.wkxuetang.*', //導入模型 )); ... } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看