What is the impact of switching in and out of the PHP render engine? -
is there substantial impact in performance (both in browser , on server) exiting , entering php render engine? example:
<p>lorem ipsum..</p> <?php myphpfunction(); ?> <p>more html</p> <?php anotherphpfunction(); ?> if big impact in terms of performance, how can bundle of php together, if majority of pages static html?
in terms of performance, there isn't downside of doing this. when use these echo statements, php building internal ouput buffer flushed browser once page done executing. there ways around this, such ob_flush.
however in terms of separation of concern , overall software design, bad put business logic(not view logic brenton pointed out below) views. code becomes harder maintain if have type of setup.
Comments
Post a Comment