Discussion – Lesson 5 - Making an object-oriented component in PHP - Image Gallery
BackComments
Member
7 messages from 7 displayed.
//= Settings::TRACKING_CODE_B ?> //= Settings::TRACKING_CODE ?>
Comments
Hi Aljon, thanks for the info, we've fixed it. We also added 10 points to your account for reporting the mistake.
In the conclusion of the article relating to Possible enhancements, it states that "One of the main ones being that the HTML code is echoed out, which makes working with it kind of confusing". I am not certain I understand the problem and what alternative(s) would you suggest.
Hi Garry, it means that it doesn't use any HTML template but uses the
echo()
function to render HTML code instead. Ideally, HTML code and
PHP code should be separated.
Thanks David for your clarification although now you have caused me to study the concept/use of HTML templates as I have been using the 'echo' function. Any suggestions where I could begin my further reading and study? Thanks again for your assistance.
Hi Garry, it's all explained in the following course - https://www.ict.social/php/mvc
Thanks David, I shall begin my tuition.
7 messages from 7 displayed.