top-think / think-template

the php template engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

建议类的成员/方法可见性改为protected

zhaokeli opened this issue · comments

能否把模板中的private方法改成protected
我项目中用到啦这个模板引擎但是我的模板路径是一个数组,我想到啦继承方法parseTemplateFile 修改查找模板的规则,但这个方法是private的
我看到源码要好多方法都是private的,能否把方法改成protected这样可以继承实现自己的逻辑,省得自己复制一份改源码
我是从thinkphp3.1就用框架啦,模板的使用方法已经很熟悉啦,很喜欢这个模板引擎