Templates
Template or layout is the site's markup. This is the parent of view. All the templates are in App/Templates/. The default template name is default
Note: All view files and template file, should have .phtml extension.
Views in templates
$this->content() is the place where will be included the view file.
The partials
A partial is a piece of code that can be included in a template or in a view.
$this->partial('index/social'), will include a social html code.
An example of template:
<html>
<head>
<title>Crater Framework App</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<link href="/static/css/main.css" rel="stylesheet">
</head>
<body>
<div class="flash-message">
<?php $this->partial('utils/flash-message') ?>
</div>
<div class="container">
<?php $this->content() ?>
</div>
</body>
</html>
↑