Chapter 10 code
I am confused exactly how the parameters are being used and passed to the loadContent function.
First, I do not see any documentation on INPUT_GET. I understand _Get[] but what is INPUT_GET. Searching the php documentation showed nothing.
It seems the function just selects the different php files to include thereby changing the html. So I get that $where takes the parameter for what to load into the html by the return statement. But why the second variable- default. For example for the sidebar couldn't you just call loadcontent(catnav) and that would include the sidebar cat nav. Why is sidebar passed. Does t this link it to the div id# in the index.php?
I am clearly missing something some further explanation would be appreciated.
Thanks.
|