workshop 4,5

This commit is contained in:
boris
2024-10-17 00:36:46 +01:00
parent ed02b435fe
commit 9b6cf0badd
24 changed files with 2712 additions and 1 deletions

11
workshop4/Views/index.phtml Executable file
View File

@@ -0,0 +1,11 @@
<?php require('template/header.phtml') ?>
<h2>Welcome to the web-site </h2>
<h3>A template for web-site development using the <i>Model-View-Controller</i> design pattern and <a href="https://getbootstrap.com/docs/5.2/getting-started/introduction/"><i>Bootstrap</i></a>.</h3>
<p>The <i>Views/template</i> directory contains a <i>header.phtml</i> and a <i>footer.phtml</i> which should be included on every new page generated.
To add additional pages just edit the file <i>header.phtml</i> to add the extra link and then add a new <i>Controller (pageN.php)</i> and a new <i>View (pageN.phtml)</i>, for each page required.</p>
<p>The <i>Model</i> code files are placed in the <i>Models</i> directory.</p>
<p>Do not change any of the css files in the <i>css</> directory!<p>
<?php require('template/footer.phtml') ?>