i building own template system. asking myself best/fastest way output templated html. example: body.php
method1: building echostring
$layout = ' <body> <div id="header"> '.$header.' </div> </body>';
method2: html encapsulated php
areas
<body> <div id="header"> <?php echo $header; ?> </div> </body>
what recommendation , why?
a lot of people opt separation of languages, others stated, more opinion based. this question asked before if you're looking more views on situation.
Comments
Post a Comment