|
|
|
|
|
by Oxodao
396 days ago
|
|
The issue is not the readability, it's that you don't handle how your stuff is sent. Using php as a template language, it starts to send everything until it reaches a Php tag to be executed. That's why people taught each other that "you absolutely need to make session_start at the beggining of your file". No you don't, but since afterward the content starts to be sent the headers are already too. I'm not saying you absolutely need to use a framework, but you should have only one echo in your requests. I've never said the syntax you're saying is bad, I mean pretty much any templating language such has Twig uses this kind of stuff. The issue I have with this is how it works behind the scenes |
|