Skip to content

smarty 4.x fatal error php tag {php} ? #734

Answered by wisskid
polbadman asked this question in Q&A
Discussion options

You must be logged in to vote

Keep your PHP and your templates separate. That is what template engines like Smarty are for.
So: run all the PHP code you need to run, assign the results to a template variable and then display the template.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@polbadman
Comment options

Comment options

You must be logged in to vote
2 replies
@wisskid
Comment options

@polbadman
Comment options

Comment options

You must be logged in to vote
1 reply
@ernestbuffington
Comment options

Answer selected by wisskid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants