Initial PHP Slim project structure
This commit is contained in:
9
views/index.twig
Normal file
9
views/index.twig
Normal file
@ -0,0 +1,9 @@
|
||||
{% extends 'layout.twig' %}
|
||||
|
||||
{% block title %}Dashboard{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<p>This is a test.</p>
|
||||
|
||||
{% endblock %}
|
11
views/layout.twig
Normal file
11
views/layout.twig
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% block title %}{% endblock %} | Colossus</title>
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user