Hello thank you for visiting my thread your helps is appreciated.
First of all I am leaning how to put my site together using php and I am working off the following tutorial:
http://m.alistapart.com/articles/phpcms/
I am currently stuck on paragraph “Switching content with PHP variables”
What I seem to be doing doesn’t seem to be working. I am trying to pull up content into the body of my master php file.
In the tutorial it says:
The menu will stay the same for every page, so we can keep the menu.php hardcoded, but as the body will be changing we’ll need to use a variable to give us a way to reference these changes dynamically.
PHP variables can be identified by their preceding $. So, we can change the hard-coded body.html into a dynamically updateable variable by coding it as $page.html. Every reference to $page will be replaced by whatever we set the variable $page to be.
Change the body reference to:
The code above will replace any instance of $page with babeuf, so $page.html becomes babeuf.html. If we want to call picasso.html into that same template, we would set the Picasso link in our menu to template.php?page=picasso."
So I changed my body.html to $page.html and tried to include it into my page but when I included it it doesn’t seem to be pulling up content And changes/interfere with my layout, can someone help me figure out the problem?
Am I supposed to set any links in my menu.php to " index.php?page=picasso. " or “index.php?page=picasso.html or. PHP?”
Also can some please clarify how to call the variable page and how the variable page changes into the page you want?
My page can be found at www.thegrid.x10.bz.
Thank you very much for any help!