摘要: $view=file_get_contents('./a.tpl'); //新闻详情页模板模式,需要数据位置定义标签如{title},{content} $php_content=str_replace("{title}",'标题',$view); //用动态数据替换掉模板位置标签 $php_content=str_replace("{content}",'内容',$php_content);... 阅读全文
posted @ 2014-02-26 16:44 静心聆听 阅读(131) 评论(0) 推荐(0) 编辑