php如何去除侧栏,设置内容区侧栏

setTrayRight用于右侧边栏信息展示~~~return TBuilder('custom') ->layoutView('layout_simple')

setTrayRight用于右侧边栏信息展示

~~~

return TBuilder('custom') ->layoutView('layout_simple')

->setTrayRight([

'timelineList'=> [

['bg_class'=>'info','title'=>'王五','datetime'=>'11-10 10:30','desc'=>'参与了:《PHP程序猿测评1》'],

['icon_class'=>'fa fa-check','title'=>'张三','datetime'=>'09-10 10:30','desc'=>'参与了:《PHP程序猿测评2》'],

['title'=>'李四','datetime'=>'07-10 10:30','desc'=>'参与了:《PHP程序猿测评3》'],

]

])

->fetch();

~~~

![](https://box.kancloud.cn/b4ba7ca74f32f1f268a9cb96a6cd63b2_1679x522.png)

帮助中心

~~~

->setTrayRight([

'help'=> [

'title'=> '帮助中心',

'item'=> [

['设置组织邮箱有什么用?','系统邮箱支持发送数量有限,设置组织邮箱,可实现无上限邮件发送。'],

['如何使用自己qq邮箱发送?','登录自己的qq邮箱,设置->账户->POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务,选择开启POP3/IMAP服务,并获取授权码填至本系统即可。'],

]

],

])

~~~

![](https://box.kancloud.cn/8e61c39e2786a9c4d39dd67e06ff71be_512x306.png)

设置数据为空时的提示内容

~~~

->setTrayRight([

'empty_msg'=> '暂无数据!',

])

~~~

![](https://box.kancloud.cn/29932d4eee3586d9d2af8a95678d9bbd_458x265.png)

自定义HTML内容

~~~

->setTrayRight([

'html'=> '

自定义',

])

~~~

![](https://box.kancloud.cn/3c55a380cf28ec18c82d872806eba92f_508x248.png)