Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhaokeli opened this issue Nov 12, 2019 · 0 comments
Open

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

zhaokeli opened this issue Nov 12, 2019 · 0 comments

Comments

@zhaokeli
Copy link

zhaokeli commented Nov 12, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant