How would I properly pass along data to a class being referenced in this structure:
-Head Index - PageBuilder - PageSection -Body -Foot
I want to send lots of data to head, for example, but I would like to avoid this:
new PageSection('head','how to cook',$keywords,$description,$script,$css);
The above looks terrible to manage and modify. And there is more data that would be needed to be passed not shown in that example!
The classes Head, Body, and Foot need a lot of user supplied data, but what is the best way to send this data along. Keep in mind that some data needs to be hard-coded, while some needs to be set based on a database or in some cases rely on default settings.