聯(lián)系官方銷售客服
1835022288
028-61286886
需求:通過微信消息提醒對應(yīng)的權(quán)限組賬號及時登錄后臺審核稿件實現(xiàn)方法:config/hooks.php\Phpcmf\Hooks::on('module_verify_after',fu...
方法介紹\Phpcmf\Service::M('member')->notice($uid,$type,$note,$url='',$mark='')$...
讓網(wǎng)站的前端控制器禁止訪問,只保留后臺控制器的訪問開發(fā)思路:在cms運行后鉤子中判斷如果來自前端頁面就禁止往下執(zhí)行/config/hooks.php\Phpcmf\Hooks::on('cms...
$catids=implode(',',array_keys(\Phpcmf\Service::C()->_module_member_category(\Phpcmf\Service...
增加交易流水記錄方法介紹\Phpcmf\Service::M('Pay')->add_paylog(['uid'=>"交易人uid號",'username...
當需要改變模塊內(nèi)容中的某些字段或者聯(lián)動加一些相關(guān)數(shù)據(jù)時,就需要格式化顯示內(nèi)容,這個內(nèi)容只用于模塊內(nèi)容的顯示頁面,show.html頁面重寫conten類http://help.phpcmf.net/461.html內(nèi)容頁面的格式化顯示內(nèi)容繼承類方法// 格式化處理內(nèi)容public function _format_content_data($data) { return $data;}$da...
后臺每個頁面的頂部導(dǎo)航菜單的定義方法在控制器中定義菜單變量格式:\Phpcmf\Service::V()->assign(['menu'=>\Phpcmf\Service::M(...
開發(fā)時需要將遠程的文件下載到本站服務(wù)器數(shù)據(jù)庫進行數(shù)據(jù)存儲管理附件下載代碼://下載遠程文件$rt=\Phpcmf\Service::L('upload')->down_file([&#...
方法介紹\Phpcmf\Service::M('member')->add_score($uid, $val, $note = '', $url = '', $mark = '', $count = 0)$uid 用戶id$val 增減值,負數(shù)表示扣金幣$note 備注說明$url 相關(guān)鏈接$mark 唯一標注值,和count參數(shù)配...
開發(fā)者創(chuàng)建表單后,需要導(dǎo)入到現(xiàn)有或其他系統(tǒng)中,可以使用本方法執(zhí)行導(dǎo)入腳本:\Phpcmf\Service::M('Form')->import("生成的表單字符串");生成的表單字符串...
存儲\Phpcmf\Service::L('input')->set_cookie('變量名稱','變量值','有效期,秒');獲取\P...
當前訪客的IP\Phpcmf\Service::L('input')->ip_address();當前訪客的agent\Phpcmf\Service::L('input'...
1、$_GET寫法\Phpcmf\Service::L('input')->get('變量名');//會進行xss安全過濾\Phpcmf\Service::L('...
\Phpcmf\Service::M()->get_sql_query();輸出最后一次執(zhí)行的SQL語句
僅內(nèi)部使用筆記鏈接寫法:'自定義字段' => ['url:'.\Phpcmf\Service::L('Router')->url('field/index', ['rname'=>'table-表名稱', 'rid'=>0]), 'fa fa-code'],讀取字段:$m...
判斷當前已經(jīng)登錄的賬號是否關(guān)注過微信公眾號1、PHP里面if ($this->uid) { if (\Phpcmf\Service::M()->table('member_oauth')->where('uid', $this->uid)->where('oauth', 'wechat')->counts()) { ...
當前用戶購買過的全部商品記錄{php $log = \Phpcmf\Service::M('buy', MOD_DIR)->buy_log($member.uid);}{loop $log $t}{$t.title}{$t.price}{/loop}
用法:$rt = \Phpcmf\Service::M('order', 'order')->member_is_buy('用戶id', '模塊目錄', '內(nèi)容id', 'sku值選填');返回值:返回該用戶購買的次數(shù),0表示未購買示例:在內(nèi)容商品內(nèi)容頁面中,判斷當前已經(jīng)登錄的用戶購買情況{php $r...
用法:$rt = \Phpcmf\Service::M('order', 'order')->member_is_buy('用戶id', '模塊目錄', '內(nèi)容id', 'sku值選填');返回值:返回該用戶購買的次數(shù),0表示未購買示例:在內(nèi)容商品內(nèi)容頁面中,判斷當前已經(jīng)登錄的用戶購買情況{php $r...
后臺提示:系統(tǒng)沒有安裝內(nèi)容模塊解決方案:http://help.phpcmf.net/631.html
當內(nèi)容發(fā)布者變化時系統(tǒng)會聯(lián)動變化默認的一些相關(guān)表,在二次開發(fā)時如果涉及到了欄目的自定義表需要重寫conten類http://help.phpcmf.net/461.html內(nèi)容變更作者聯(lián)動繼承類方法// 作者時的聯(lián)動繼承類protected function _edit_author_row($row) {}$row 是當前已變更后的內(nèi)容主表的記錄,其中$row['uid']是已經(jīng)...
當內(nèi)容發(fā)布者變化時系統(tǒng)會聯(lián)動變化默認的一些相關(guān)表,在二次開發(fā)時如果涉及到了欄目的自定義表需要重寫conten類http://help.phpcmf.net/461.html內(nèi)容變更作者聯(lián)動繼承類方法// 作者時的聯(lián)動繼承類protected function _edit_author_row($row) {}$row 是當前已變更后的內(nèi)容主表的記錄,其中$row['uid']是已經(jīng)...
當欄目變化時系統(tǒng)會聯(lián)動變化默認的一些相關(guān)表,在二次開發(fā)時如果涉及到了欄目的自定義表需要重寫conten類http://help.phpcmf.net/461.html內(nèi)容變更欄目聯(lián)動繼承類方法// 變更欄目時的聯(lián)動繼承類protected function _edit_category_row($row, $catid) {}$row 是當前內(nèi)容主表的記錄,其中$row['catid...
\Phpcmf\Service::M()->db->tableExists(\Phpcmf\Service::M()->dbprefix('member'))判斷member表是否存在,成功返回true
\Phpcmf\Service::M()->db->fieldExists('username', \Phpcmf\Service::M()->dbprefix('member'))驗證member表中是否存在字段username,成功返回true
模板名稱pay_success參數(shù)介紹Array([id]=>446[mid]=>1_shop-61-40-1-null[uid]=>1[username]=>dayrui[touid]=>4310[tousername]=>test[title]=>點贊[value]=>-10.00[type]=>phpcmf[status]=>1[result]=>[paytime]=>...