在微应用程序中插入某篇文章的内容
2015-12-28 22:39
169 查看
php页面:
$img=M('Img')->where('id=19')->find();
$contact=html_entity_decode($img['info']);
$this->assign('contact',$contact);
html页面:
<div class="footer">
{pigcms:$contact}
</div>
$img=M('Img')->where('id=19')->find();
$contact=html_entity_decode($img['info']);
$this->assign('contact',$contact);
html页面:
<div class="footer">
{pigcms:$contact}
</div>
相关文章推荐
- Android中的Service的使用详解(一)
- 无限滚动
- Rotate List leetcode
- 计算器软件的代码实现 (WPF+SQL+策略模式)
- 关于应届生找工作的面试心得--越努力才会越幸运
- SQL Server 2008 R2——ROW_NUMBER() 去掉不同行中相同列的重复内容
- Android进阶之ProGuard代码混淆
- rsync 实现文件备份同步
- GitHub上史上最全的Android开源项目分类汇总
- 一小时学会用Python Socket 开发可并发的FTP服务器!!
- 引用或修改列表的元素
- NEC协议
- 【成功学积累】:WYL老爸的故事
- Day-7 转班了
- mybatis学习日记(一)2-mybatis介绍
- 第十八周--学生成绩管理
- Vmware tools 提示 只能安装在虚拟机中
- rsync 服务器
- rsync 客户端
- [Python标准库]copy——复制对象