在微应用程序中插入某篇文章的内容

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>

posted @ 2015-12-28 22:39  绿尘枫  阅读(131)  评论(0编辑  收藏  举报