Hello, I have created a simple php Model View Controller (MVC).
[ul][li]In the controller folder I have controller.php[/li]
[li]In the model folder I have model.php, page.php and dbconnect.php file[/li]
[li]In the view folder I have pages.php and viewpage.php[/li][/ul]
In the database I have populated a pages table with columns PageID, Page Title, Image, Description.
What I need to know is, how do I implement my existing website template into this MVC? I think I understand that the .html files need to be changed to .php, but where to go from there, I do not know. I am stuck.
When I load up my mvc in browser that I currently have, it displays the database information ok (screenshot below) https://preview.ibb.co/kdtZNa/Capture.png How would I implement those links into my websites template menu? And when I click those links it takes me to that page and displays database content for that page. I would I implement that into my MVC
Any assistance or help to point me into the right direction would be really appreciated thanks. Or any links that have good information about this.
I am a beginner to php.