Jump to content

Building html page


jaymc

Recommended Posts

How do you guys build a html page which is generated dynamically through php/mysql with pagination etc..

 

* I have seen people use html class to deal with fully populating the page

* Someone else used arrays  e.g $html['head'] .= "<script type=text/javascript></script>"; then just echo each of the array elements out

 

What way do you use and what way is the 'correct' in terms of todays standards

 

I have been playing around with doing it via html class but also like the idea of doing it using arrays to store key parts that make up the end result of the page

 

Any basic examples would be nice too :)

Link to comment
https://forums.phpfreaks.com/topic/163662-building-html-page/
Share on other sites

  I perfer to use a class for many reasons. One I can have defined variables with in the class to include pre-built arrays. But the major advantage is that it can be completely self building with a single call. It is easy to modify and to build in customization possibilities. It can be expanded upon using inheritance.

Link to comment
https://forums.phpfreaks.com/topic/163662-building-html-page/#findComment-863573
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.