Website Structure

后端 未结 9 688
无人及你
无人及你 2021-02-04 19:43

I\'m pretty new to php and i\'m trying to decide the best way to organize the pages and, using PHP, deliver them. The two (basic) ideas I\'ve had are:

  • A bunch o

9条回答
  •  死守一世寂寞
    2021-02-04 20:13

    Depends.

    Is the content of the page stored in a database? If so, you'd probably be best off by having a template for each content-page that just gets the content, titles and meta-info from the database and inserting it into the template. You can even have different types of pages (news, static content pages, archive-pages etc.), that all can have a different template.

    If content is located in more or less flat files, the two suggestions you have do work, and I'd think the latter one is the easisest one to maintain.

提交回复
热议问题