聯(lián)系官方銷售客服
1835022288
028-61286886
掛鉤點名稱module_category_data用法舉例/config/hooks.php\Phpcmf\Hooks::app_on('備注信息', 'module_category_data',
一、作用用于循環(huán)查詢模塊內(nèi)容數(shù)據(jù)(支持分頁查詢)二、語法{module module=模塊名稱 ....}{/module}三、參數(shù)介紹參數(shù)介紹module模塊名稱,默認(rèn)為當(dāng)期模塊(僅在模塊模板中有效
鉤子名稱module_search_get_data用于模塊內(nèi)容搜索之前,不進(jìn)入默認(rèn)的搜索類,返回自己的搜索程序代碼,返回格式為 $data = [ 'id' => $i
掛鉤點名稱module_show用法舉例/config/hooks.php\Phpcmf\Hooks::app_on('備注信息', 'module_show', function($data) {
掛鉤點名稱module_update_url用法舉例/config/hooks.php\Phpcmf\Hooks::app_on('備注信息', 'module_update_url', functi
一、作用用于獨(dú)立模塊的欄目列表循環(huán)查詢二、語法{category module=模塊目錄名稱 ....}{/category}三、參數(shù)介紹參數(shù)介紹module模塊目錄site站點id,默認(rèn)為當(dāng)前站點i
當(dāng)使用循環(huán)標(biāo)簽category、module等等時,需要判斷結(jié)果是否為空怎么辦方法1:使用empty標(biāo)簽http://223987.com/doc/1366.html方法2:先循環(huán)不輸
開發(fā)者在設(shè)計模板的時候需要避免查詢標(biāo)簽過多的情況,特別是對num參數(shù)的優(yōu)化,舉例查詢10條數(shù)據(jù){modulemodule=newsnum=0,10}{$t.title}{/module}再從11條開始...
后臺模塊控制器的父類文件:dayrui\App\Module\Control\Admin\Module.php 此控制器繼承于Table類此控制器作用是用于后臺對模塊的操作控制。我們以Demo模塊的用
空循環(huán)標(biāo)簽empty 是針對循環(huán)標(biāo)簽查詢結(jié)果為空時,執(zhí)行的顯示內(nèi)容語法格式:將循環(huán)標(biāo)簽的結(jié)束標(biāo)簽,替換為:{empty}表示沒有查詢到數(shù)據(jù)顯示的區(qū)域{/empty}1、module標(biāo)簽為例,當(dāng)查詢文章
dr_is_empty,dr_is_sys_301,dr_else_value,dr_safe_url,dr_diff,dr_array_keys,dr_array_value,dr_in_array,dr_array_intersect,dr_array_intersect_key,dr_strlen,dr_strpos,dr_stripos,dr_move_uploaded_file,dr_html2code,dr_code2html,dr_html_code,dr_oauth_list,dr_is_mobile,dr_is_admin_search_field,dr_get_array_key,dr_site_info,dr_site_value,dr_get_ftable,dr_get_ftable_array,dr_get_content_img,dr_get_content_url,dr_is_app,dr_is_module,dr_rp,dr_rp_view,dr_qrcode,dr_sec2time,dr_get_files,dr_get_image,dr_upload_temp_path,dr_star_level,dr_format_create_sql,dr_cms_domain_name,dr_lang,dr_client_data,dr_ueditor_html,dr_get_domain_name,dr_save_bfb_data,dr_avatar_dir,dr_avatar_path,dr_avatar,dr_member_info,dr_member_username_info,dr_list_function,dr_linkagepos,dr_linkage,dr_linkage_json,dr_linkage_list,dr_linkage_id,dr_linkage_cname,dr_linkage_level,dr_payform,dr_fieldform,dr_block,dr_var_value,dr_get_file,dr_down_file,dr_get_file_url,dr_field_options,dr_field_setting,dr_member_auth,dr_member_auth_id,dr_zhe_price,dr_price_value,dr_sku_value_name,dr_sku_price,dr_sku_name,dr_level_next_value,dr_html_auth,dr_pay_type_html,dr_pay_name,dr_pay_type,dr_pay_status,dr_pay_money_html,dr_clear_empty,dr_list_field_order,dr_array2array,dr_array22array,dr_is_use_module,dr_site_table_prefix,dr_module_table_prefix,dr_mform_table_prefix,dr_form_table_prefix,dr_icon,dr_file,dr_file_preview_html,dr_is_image,dr_format_option_array,dr_field_input,dr_dir_map,dr_file_map,dr_return_data,dr_form_hidden,dr_get_csrf_token,dr_form_search_hidden,dr_base64_encode,dr_base64_decode,dr_get_theme,dr_randcode,dr_dir_delete,dr_authcode,dr_now_url,dr_code,dr_sorting,dr_member_order,dr_show_stars,dr_ajax_template,dr_post_json_data,dr_catcher_data,dr_search_rewrite_encode,dr_search_rewrite_decode,dr_rewrite_encode,dr_rewrite_decode,dr_get_keyword,dr_safe_keyword,dr_safe_replace,dr_safe_filename,dr_safe_username,dr_safe_password,dr_rm_http,dr_safe_replace_path,dr_strcut,dr_wordcut,dr_random_color,dr_fdate,dr_date,dr_object2array,dr_arraycut,dr_string2array,dr_array2string,dr_mkdirs,dr_format_file_size,dr_keyword_highlight,dr_preg_html,_format_feed_content_url_length,dr_qrcode_url,dr_get_order_string,dr_discount,dr_distance,dr_square_point,dr_tpl_path,dr_array_rand,dr_array_sort,dr_get_form_post_value,dr_get_mform_post_value,dr_get_register_value,dr_tpl_file,dr_count,dr_http_prefix,dr_to_url,dr_mobile_url,dr_is_url,dr_url_prefix,dr_web_prefix,dr_url_full,dr_url_rel,dr_text_rel,dr_text_full,dr_member_group_etime,dr_member_group_dtype,dr_html2emoji,dr_clear_emoji,dr_text2py,dr_html2text,dr_htmlspecialchars,dr_is_root_path,dr_check_put_path,dr_debug,dr_code2utf8,dr_clearhtml,dr_filter_description,dr_get_description,dr_get_keywords,dr_redirect,dr_redirect_safe_check,remove_invisible_characters
每個模塊都可以定義一種個性配置,為模塊屬性增加各種配置選項例如,為deomo模塊增加文本選項appid參數(shù)設(shè)置1、新建dayrui/App/Demo/Controllers/Admin/Param.p
一、作用用于模塊表單的列表循環(huán)查詢二、語法{mform form=表單的表名稱 cid=內(nèi)容id module=模塊目錄 site=站點id ....}{/mform}三、參數(shù)介紹(紅色表示必填參數(shù),
掛鉤點名稱module_content_after掛鉤點參數(shù)// 掛鉤點 模塊內(nèi)容審核處理之后\Phpcmf\Hooks::trigger('module_verify_after', $data);
掛鉤點名稱form_verify掛鉤點參數(shù)\Phpcmf\Hooks::trigger('form_verify', $row);用法舉例/config/hooks.php\Phpcmf\Hooks:
一、用于后臺加入回收站之后、用戶中心刪除內(nèi)容之后的操作掛鉤點名稱module_content_recycle用法舉例/config/hooks.php\Phpcmf\Hooks::app_on('備注
掛鉤點名稱module_content_after掛鉤點參數(shù)// 掛鉤點 模塊內(nèi)容發(fā)布或修改完成之后\Phpcmf\Hooks::trigger('module_content_after', $da
掛鉤點名稱module_form_post_after用法舉例/config/hooks.php\Phpcmf\Hooks::app_on('備注說明', 'module_form_post_afte
適用于 module、table、form、mfrom、member、related、category循環(huán)標(biāo)簽的排序參數(shù)1、由大到小排列(默認(rèn))order=字段_desc2、從小得到大排列order=
用戶中心模塊控制器的父類文件:dayrui\App\Module\Control\Member\Module.php 此控制器繼承于Table類此控制器作用是用于用戶中心對模塊的操作控制。我們以Dem
Control是控制器類繼承的父類程序文件,由模塊控制器繼承。一、后臺控制器父類目錄:/dayrui/App/Module/Control/Admin用于模塊的后臺控制器,由模塊目錄的Admin控制器
一、語法{related tag=標(biāo)簽名稱 module=模塊名稱 ....}{/related}二、參數(shù)介紹參數(shù)介紹tfield指定模糊匹配字段,默認(rèn)為keywords,可以指定成為其他字段其他與m
一、作用用于查詢某表,某條件的數(shù)據(jù)量二、語法{count action=標(biāo)簽類型 ....}三、參數(shù)介紹標(biāo)簽類型支持:'sql', 'module', 'member', 'form', 'mform
數(shù)據(jù)優(yōu)化是一個大學(xué)問,本節(jié)部分內(nèi)容來自百度一、模板標(biāo)簽?zāi)0鍢?biāo)簽寫法不合理時會導(dǎo)致cpu占用過高,網(wǎng)站緩慢,不推薦使用的標(biāo)簽module=all 全模塊查詢嚴(yán)重影響速度related 相關(guān)標(biāo)簽,按關(guān)鍵詞
插件信息文件:Config/App.php<?phpreturn [ 'type' => 'app', // 固定app不變 //'ftype' => 'module', // 可選,做完
一、作用用于共享模塊的欄目列表循環(huán)查詢二、語法{category module=share ....}{/category}三、參數(shù)介紹參數(shù)介紹moduleshare 固定參數(shù)site站點id,默認(rèn)為
循環(huán)輸出全部已安裝的模塊{cache name=module-content module=all}名稱:{$t.name}地址:{$t.url}圖標(biāo):{$t.icon}目錄:{$t.dirname}
一、作用調(diào)用文章的詳細(xì)字段(含附表)單條數(shù)據(jù)二、語法{content id=文章id module=模塊名稱 ....}{/content}三、參數(shù)介紹參數(shù)介紹id文檔的idmodule模塊名稱,例如
一、作用用于查詢某表,某條件的某個字段累計總和。二、語法{sum sum=求和字段名稱 action=標(biāo)簽類型 ....}三、參數(shù)介紹標(biāo)簽類型支持:'sql', 'module', 'member',
一、作用用于循環(huán)查詢多個模塊內(nèi)容數(shù)據(jù)(支持分頁查詢)二、語法{modules module=模塊名稱1,模塊名稱2 field=字段1,字段2 ....}{/modules}三、參數(shù)介紹參數(shù)介紹mod