What's a template and what's the subject?



  • What's a template and what's the subject? Can't the Shablon be a subject? Why are there different patterns in Yii2, isn't one enough?



  • Shablon is this. filewhich describes how to display a specific page of the website or part of the page. After processing the template, the template becomes a html line that is transferred to a browser.

    The topic is file kitswhich determine the appearance of the entire site. The topic may be a separate template for each site page.

    But you don't have to think of a template as a part of the topic: yii The website may not be the same, but page templates are required.

    PS following the discussion in the commentaries:

    There's another project template. The project template is a setup that can start making a website. The template itself does not affect anything but the time to spend on the site. And the project template certainly doesn't affect the appearance of the site.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2