Can anyone have any idea how to implement this: For example, a request to create a page is submitted to the database, a record is created in the database (for example: id = 1 title = home). Is it possible to fasten a certain HTML document to this record, something like a template?

  • one
    Taking into account your approach to implementation, it will be easiest for you to add the template field to the template --------------------------------- ------- $template = file_get_contents($row['template'] . ".html"); ---------------------------------------- And then dancing with: strpreg_replace, preg_replace and t .d - Palmervan

1 answer 1

It is enough to create ONE page with a GET-processor, which, in turn, provides data for building an individual page (based on ID, for example).

  • How to make this GET handler ??? - webkostya