![]() ![]() In contrast, the template for the birds section loads a different body template, tpl/birds/body.tpl. Within the HTML element, it uses two includes for templates representing the head and body. This is the very outermost skeleton of an html document: it only includes a doctype and an HTML element. ![]() The funcs.php file defines that TPL_DIR constant as the full absolute path of the tpl directory at the top level of the site. Note the two includes right at the beginning of this file: funcs.php and TPL_DIR."/home.php". Depending on how your web server is set up, you should be able to access it at or, failing that. This is the file that represents the site’s home page. Take a look at tpl/head.php and you should see an example like: Basic Templating You can install and host the Bootstrap files on your server, but for maximum speed, you can just reference them from a CDN. It’s an excellent way of quickly getting a site up and running before you spend time fine-tuning the design. It has built-in styles and JavaScript functionality, covering most common web dev needs. Bootstrap is a front-end framework for building websites. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |