@dansonyun
Anyone knows how to remove Smarty completely?
I konw the procedure to remove Smarty but failed to rewrite the code into pure PHP.
I'm a bit confused with what you are asking. You want to remove Smarty but you know how to do that but don't know how to write pure PHP? Since you know PHP than there's shouldn't be any issue.
LastMitch
Industrious Poster
4,118 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
@dansonyun
The code between " {section} {/section} " must transform to pure PHP. I'm stuck right here. I must made some mistakes but just can't figure it out...... You know~~
I feel you know how to do this. I used Smarty too. It's just that I'm feeling that you don't want to take time doing this? I know there's more than 1 file needs to change in order for this work. That I know for sure! So I know you know how to do this. Show some effort.
LastMitch
Industrious Poster
4,118 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
I'll give you a hint, the classes are making it more difficult, you don't need them. Adapt the loop that reads the data file to output whats in the section in the template file.
pritaeas
Posting Prodigy
9,265 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,456
Skill Endorsements: 86