Like most content management systems, PyroCMS uses front-end themes. Though PyroCMS themes are built a bit differently than what you might be used to from other systems, they’re still quite easy to create. They’re so easy, in fact, that very little PHP experience is required to assemble them!
The Folder Structure
PyroCMS themes consist of HTML, images, CSS, and JavaScript, arranged into the following supported folders:
- css
- img
- js
- views
- views/layouts
- views/partials
- views/modules
While these folders will no doubt look familiar to you, the "views" folder makes the most sense within the context of MVC. When building a theme for PyroCMS, you are really building the views (including assets) of a MVC patterned application. These views consist of a master layout file and multiple partial files (i.e. a header.html or footer.html) that shares presentation logic between different layouts.
Comments
Be the first to write a comment
You must me logged in to write a comment.