Page creating in PHP
: I'm trying to learn how to make a cms
but I couldn't understand something. For example in Wordpress
when you click "create a new page" button what is happening at the backside? For example now I don't have any page.
I want to create these pages dynamically:
After I want to add this pages in my menu. What is the best way to do that?
Questions:
Should I create a new php
file to do this or just get data from my database which belongs to each page?
How I add these pages in my menu dynamically ?
What is htaccess
? I couldn't understand that exactly it does relating the the processes of the files.
There are tutorials on internet but they always show how to get articles from database. When I have another item (for example a slider) I need a real page.
Can somebody suggest me a simple tutorial, or provide a clear explanation which explains the logic simply.
I have created something similar. This is how I did it (may not be the best way but it is certainly the easiest).