poison6feet Posted August 27, 2009 Share Posted August 27, 2009 Hi Most of the website when I click on menu link, it will show as a directory and page as index.php page. I am new to PHP and I have created a website which has different level menus such as, Home Services contact About and so on, I wondering, do I need to create a seperate directory for each menu item and create an index.php for each directory. Which is better, creating seperate directory or one directory with different pages???? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/172125-menu-directories/ Share on other sites More sharing options...
JonnoTheDev Posted August 27, 2009 Share Posted August 27, 2009 Which is better, creating seperate directory or one directory with different pages Actually the urls may look like another directory but in fact could be mod-rewritten urls or implementing the MVC pattern. If it's a simple site like you have stated then just use files in the document root. Not subdirectories. i.e /docs/ index.php services.php contact.php about.php No need to make complicated. Quote Link to comment https://forums.phpfreaks.com/topic/172125-menu-directories/#findComment-907547 Share on other sites More sharing options...
poison6feet Posted August 27, 2009 Author Share Posted August 27, 2009 Thanks neil for your quick reply, I will keep it simple. Quote Link to comment https://forums.phpfreaks.com/topic/172125-menu-directories/#findComment-907551 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.