Step 6: Create a layout template
·
16 commits
to master
since this release
Create a layout template. To do so, follow these steps:
- Create a
views\partialssub-directory. - Cut the code of HTML
<head>, top navigation, sidebar and footer and paste it into their corresponding PhP files. requireall partials in theloadView()function.- Create a
publicfolder andcss,img,jsandwebfontssub-folders. Download the corresponding resources to these directories and modify the links to use the local copies. - Tell the PhP server to use the
publicdirectory with these parameters:
php -S localhost:8080 -t public