Templating

How to include PHP files/Templates in CodeIgniter

Submitted by nurhodelta_17 on
This tutorial tackles on how to include PHP flies/Templates or string in views of CodeIgniter. CodeIgniter is a lightweight PHP framework that uses MVC(Model-View-Controller) architecture. We cant just simply include our php file like we did with core PHP using include() function in CodeIgniter instead we do this in controllers following this tutorial.

Python - Django Templating and Includes

Submitted by nurhodelta_17 on
This tutorial tackles about templating and includes. Templating and including is done so that you wont have to repeat a certain html lines again and again if you wanted to have same result in several html pages. For example, 2 pages of your site have the same header. Instead of creating 2 headers for both pages, you just need to create a header file and include it to both pages.