brwalias Posted September 22, 2006 Share Posted September 22, 2006 Please excuse this post if it's similar to another. I looked but could not find an answer on this forum.I'm building a database driven website using PHP & MySQL. I'm very new at using PHP and am looking for a solution as well as get a better sense of how this will work.I would like to setup one template file that displays the overall layout of the site. This could also be referred to as the design skeleton for the site. Now, the global nav is going to have various links that represent a category of the content in the site. When selected, a request to the database for the content is made. I would also like the template to be called so each of the global nav links generates dynamic content and pages. What is the best way to handle this?thoughts:does the global nav link pass a variable calling a function that dynamically creates the templates each time the function is executed? I'm not necessary looking for code but any kind of discussion would be helpful! Thanks! Quote Link to comment Share on other sites More sharing options...
Caesar Posted September 22, 2006 Share Posted September 22, 2006 [quote author=brwalias link=topic=109107.msg439579#msg439579 date=1158952543]does the global nav link pass a variable calling a function that dynamically creates the templates each time the function is executed? [/quote]How it will work will depend on database design, logic used when programming it, and how you designed the template system. Quote Link to comment Share on other sites More sharing options...
brwalias Posted September 22, 2006 Author Share Posted September 22, 2006 This is an ecommerce site so it will be category driven. i.e. once a category 1 is selected, it should display a landing page for category 1 with multiple sub categories of Category 1. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.