用户
 找回密码
 入住 CI 中国社区
搜索
查看: 3106|回复: 4
收起左侧

[HELP] ci模版解析器类的问题

[复制链接]
发表于 2009-7-31 14:22:59 | 显示全部楼层 |阅读模式
$this->parser->parse('blog_template', $data);中

blog_template.php是自动生成的还是我事先写好的?

blog_template.php是放在view中吗?
发表于 2009-7-31 14:37:06 | 显示全部楼层
 楼主| 发表于 2009-7-31 14:46:29 | 显示全部楼层
我正在看这个页,(模板解析器类可以解析你的视图文件中的伪变量。)是不是

<html>
<head>
<title>{blog_title}</title>
</head>
<body>

<h3>{blog_heading}</h3>

{blog_entries}
<h5>{title}</h5>
<p>{body}</p>
{/blog_entries}
</body>
</html>

就写在view的blog_template里面的意思呢?
发表于 2009-7-31 14:50:18 | 显示全部楼层
是啊,就是视图,只不过可以使用模版语法而已。
 楼主| 发表于 2009-7-31 14:52:08 | 显示全部楼层
问题解决了,非常感谢

本版积分规则