直接复制把!
$zbp->table['Post'] # 文章/页面 输出: zbp_post (字符串类型)
$zbp->table['Category'] # 分类
$zbp->table['Member'] # 用户
$zbp->table['Comment'] # 评论
$zbp->table['Tag'] # 标签
$zbp->table['Upload'] # 附件
$zbp->table['Config'] # 设置
$zbp->table['Module'] # 模块
zblog获取系统表的名字
$tableNameShort = "Post"; # 支持 Post Category Tag Comment Member Config Module Upload
$zbp->table[$tableNameShort]
# 支持 Post Category Tag Comment Member Config Module Upload
输出: zbp_post (字符串类型)
zbp_post -> 'Post'
zbp_comment -> 'Comment'
zbp_member -> 'Member'
zbp_config -> 'Config'
zbp_module -> 'Module'
zbp_upload -> 'Upload'
zbp_category -> 'Category'
zbp_tag -> 'Tag'
更多可以打印:
print_r($zbp->table);
Array
(
[Post] => zbp_post
[Category] => zbp_category
[Comment] => zbp_comment
[Tag] => zbp_tag
[Upload] => zbp_upload
[Module] => zbp_module
[Member] => zbp_member
[Config] => zbp_config
[fh_log] => zbp_fh_log
[cat_spider] => zbp_cat_spider
)
定义表的时候可以把表名字 加到 $zbp->table 参考:
https://zblog.gongshi5.com/post/82.html