Designers
Building templates for a CMS can be a pain. Each one has its own conventions that only sometimes make sense. The DSM CMS uses Zend Views for the templates. By adopting this common functionality you are learning a skill that you can use in any of your projects.
The Anatomy of a Template
The template folders are located in /public_html/templates. In this example we will look at this site's template. The template is made up of 5 folders: helpers: these are Zend View helpers that are specific to the template images: these are images that are specific to...
The Main Template View
The main template view is the index.phtml file that is located in the root of the template folder. phtml is an extension that Zend uses to designate php generated html files. It is the default extension for all Zend Views. Here is the standard template's code: You will see that this looks...
Layouts
Layouts can be thought of as subtemplates. If you go to the home page of this site you will see that the main content is just displayed as common html. Then in this section you see that the subpages are displayed as a list with an intro and a link...