<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # 插件配置文件 插件配置文件是插件目錄下的`config.php`,不需要配置的插件可以不添加此文件; 文件結構: ```php <?php // +---------------------------------------------------------------------- // | ThinkCMF [ WE CAN DO IT MORE SIMPLE ] // +---------------------------------------------------------------------- // | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved. // +---------------------------------------------------------------------- // | Author: Dean <zxxjjforever@163.com> // +---------------------------------------------------------------------- return [ 'text' => [// 在后臺插件配置表單中的鍵名 ,會是config[text] 'title' => '文本', // 表單的label標題 'type' => 'text',// 表單的類型:text,password,textarea,checkbox,radio,select等 'value' => 'hello,ThinkCMF!',// 表單的默認值 'tip' => '這是文本組件的演示' //表單的幫助提示 ], 'password' => [// 在后臺插件配置表單中的鍵名 ,會是config[password] 'title' => '密碼', 'type' => 'password', 'value' => '', 'tip' => '這是密碼組件' ], 'number' => [ 'title' => '數字', 'type' => 'number', 'value' => '1.0', 'tip' => '這是數字組件的演示' ], 'select' => [// 在后臺插件配置表單中的鍵名 ,會是config[select] 'title' => '下拉列表', 'type' => 'select', 'options' => [//select 和radio,checkbox的子選項 '1' => 'ThinkCMFX',// 值=>顯示 '2' => 'ThinkCMF', '3' => '跟貓玩糗事', '4' => '門戶應用' ], 'value' => '1', 'tip' => '這是下拉列表組件' ], 'checkbox' => [ 'title' => '多選框', 'type' => 'checkbox', 'options' => [ '1' => 'genmaowan.com', '2' => 'www.thinkcmf.com' ], 'value' => 1, 'tip' => '這是多選框組件' ], 'radio' => [ 'title' => '單選框', 'type' => 'radio', 'options' => [ '1' => 'ThinkCMFX', '2' => 'ThinkCMF' ], 'value' => '1', 'tip' => '這是單選框組件' ], 'radio2' => [ 'title' => '單選框2', 'type' => 'radio', 'options' => [ '1' => 'ThinkCMFX', '2' => 'ThinkCMF' ], 'value' => '1', 'tip' => '這是單選框組件2' ], 'textarea' => [ 'title' => '多行文本', 'type' => 'textarea', 'value' => '這里是你要填寫的內容', 'tip' => '這是多行文本組件' ], 'date' => [ 'title' => '日期', 'type' => 'date', 'value' => '2017-05-20', 'tip' => '這是日期組件的演示' ], 'datetime' => [ 'title' => '時間', 'type' => 'datetime', 'value' => '2017-05-20', 'tip' => '這是時間組件的演示' ], 'color' => [ 'title' => '顏色', 'type' => 'color', 'value' => '#103633', 'tip' => '這是顏色組件的演示' ], 'image' => [ 'title' => '圖片', 'type' => 'image', 'value' => '', 'tip' => '這是圖片組件的演示' ], 'location' => [ 'title' => '地理坐標', 'type' => 'location', 'value' => '', 'tip' => '這是地理坐標組件的演示' ], ]; ``` ## 插件控制器里獲取插件配置 ``` $config = $this->getPlugin()->getConfig(); ``` ## 插件類里獲取插件配置 ``` $config = $this->getConfig(); ``` ## 完全自定義插件配置處理 在插件配置文件中增加一下選項就可以完全自定義自己的插件配置了 ``` return [ 'custom_config' => [// 在后臺插件配置表單中的鍵名 ,會是config[custom_config],這個鍵值很特殊,是自定義插件配置的開關 'title' => '自定義配置處理', // 表單的label標題 'type' => 'text',// 表單的類型:text,password,textarea,checkbox,radio,select等 'value' => '1',// 如果值為1,表示由插件自己處理插件配置,配置入口在 AdminIndex/setting 'tip' => '自定義配置處理' //表單的幫助提示 ], ] ``` 自定義配置的界面入口在`AdminIndex/setting`,也就是插件`AdminIndexController`的`setting`方法
                  <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>

                              哎呀哎呀视频在线观看