0
I started making a website in the code anyway. Only this site will have several pages where on every page, the structure is the same, what changes is only the content. In order not to have to do the code page by page, do a lot of pages, I want to use a standard making structure include
with php
and picking up the contents on mysql
.
Example:
https://www.youtube.com/watch?v= <- standard structure | define content -> Kplpa07kbr0
https://www.facebook.com/pg <- default structure | define content -> /zulaxcloud/
Usually to do this kind of thing one uses an MVC framework. As for example, the Laravel.
– Luiz Felipe
@Luizfelipe has some other option?
– Lucas Josivan
I don’t understand what the doubt is? You’re in trouble with us
include
s?– Costamilam
@Guilhermecostamilam actually wanted to make a structure just for various contents. For example: www.meuseite.com/pg1 - www.meuseite.com/pg2 - www.meuseite.com/pg3 .
– Lucas Josivan
And what’s the problem, what can’t you do? The only thing you need is an index with the layout and design, the queries and include
– Costamilam
@Guilhermecostamilam I already have the default page, queries and includes. But as I will create a link to access a type of content using the default page?
– Lucas Josivan