迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
問一下,數(shù)據(jù)保存的方法為save()方法,數(shù)據(jù)更新跟刪除的方法是那個呢?
新增和修改都save。刪除是del
回復(fù)迅睿框架創(chuàng)始人
獲取模塊所有數(shù)據(jù)的方法是什么呢,老大
5、數(shù)據(jù)刪除方法
public function del() { $this->_Del( \Phpcmf\Service::L('Input')->get_post_ids(), // 獲取批量刪除id號 null, // 刪除之前的函數(shù)驗證 null, // 刪除之后的函數(shù)處理 \Phpcmf\Service::M()->dbprefix($this->init['table']) // 設(shè)定刪除表名稱 ); }
\Phpcmf\Service::M()->table_site("模塊目錄")->getAll();
那我要根據(jù)某個條件去查詢跟這個條件符合的某個模塊下面所有數(shù)據(jù)要用什么函數(shù)呢老大
回復(fù)迅??蚣軇?chuàng)始人
\Phpcmf\Service::M()->table_site("模塊目錄")->where("條件")->getAll();
$iiff = \Phpcmf\Service::M()->table_site('news')->select('id')->where('title', $add[1]['title'])->getAll();
回復(fù)迅睿框架創(chuàng)始人我這樣寫,沒出來......
echo \Phpcmf\Service::M()->get_sql_query();
看看sql是多少,去phpmyadmin運行下是否一致
新增和修改都save。刪除是del
回復(fù)迅睿框架創(chuàng)始人
獲取模塊所有數(shù)據(jù)的方法是什么呢,老大
5、數(shù)據(jù)刪除方法
\Phpcmf\Service::M()->table_site("模塊目錄")->getAll();
那我要根據(jù)某個條件去查詢跟這個條件符合的某個模塊下面所有數(shù)據(jù)要用什么函數(shù)呢老大
回復(fù)迅??蚣軇?chuàng)始人
\Phpcmf\Service::M()->table_site("模塊目錄")->where("條件")->getAll();
$iiff = \Phpcmf\Service::M()->table_site('news')->select('id')->where('title', $add[1]['title'])->getAll();
回復(fù)迅睿框架創(chuàng)始人我這樣寫,沒出來......
$iiff = \Phpcmf\Service::M()->table_site('news')->select('id')->where('title', $add[1]['title'])->getAll();
echo \Phpcmf\Service::M()->get_sql_query();
看看sql是多少,去phpmyadmin運行下是否一致