迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務經(jīng)理
微信掃描以上二維碼
028-61286886
技術咨詢
文章中的搜索內(nèi)鏈為 http://test.kmpass.com/news/search/keyword-3D+printing+technology.html, 我想替換成http://test.kmpass.com/news/search/3D-printing-technology.html,請問是在哪個文件里?
修改news模塊的搜索url規(guī)則,自定義url規(guī)則
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復迅睿框架創(chuàng)始人
news搜索模塊的URL為:{modname}/search/{mySearchUrl($data)}.html,自定義函數(shù)如下,怎么返回了個array,哪錯了
function mySearchUrl($data) {
return str_replace('keyword-', '', $data);
}
url規(guī)則里面去掉search
news搜索模塊的URL為:{modname}/search/{mySearchUrl($data)}.html,自定義函數(shù)如下,怎么返回了個array???
data本來就是數(shù)組
{modname}/{rewrite}.html
{modname}/{param}.html
打錯了
都不行啊,我需要把文章中的搜索內(nèi)鏈http://test.kmpass.com/news/search/keyword-3D+printing+technology.html的【keyword-】去掉,自定義搜索URL返回Array.html
這個簡單,用我搜索搜索參數(shù)字符串規(guī)則
回復@易學習
什么方法呢
私聊QQ幫你寫代碼
回復@trunnano
修改news模塊的搜索url規(guī)則,自定義url規(guī)則
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復迅睿框架創(chuàng)始人
news搜索模塊的URL為:{modname}/search/{mySearchUrl($data)}.html,自定義函數(shù)如下,怎么返回了個array,哪錯了
function mySearchUrl($data) {
return str_replace('keyword-', '', $data);
}
url規(guī)則里面去掉search
news搜索模塊的URL為:{modname}/search/{mySearchUrl($data)}.html,自定義函數(shù)如下,怎么返回了個array???
function mySearchUrl($data) {
return str_replace('keyword-', '', $data);
}
data本來就是數(shù)組
{modname}/{rewrite}.htmldata本來就是數(shù)組
{modname}/{param}.html打錯了
都不行啊,我需要把文章中的搜索內(nèi)鏈http://test.kmpass.com/news/search/keyword-3D+printing+technology.html的【keyword-】去掉,自定義搜索URL返回Array.html
這個簡單,用我搜索搜索參數(shù)字符串規(guī)則
回復@易學習
什么方法呢
私聊QQ幫你寫代碼
回復@trunnano