When I open my WordPress site, I saw below message on the Dashboard. Initially I do not understand what exactly it is, and the way to fix this. After reading the issue, carefully; I understood that, the issue is because of the old version of PHP running on my server. PHP Update Required Warning: PHP […]
PHP – Mixing Smarty tags with PHP code
PHP is used to develop sever side scripts and it is embedded with in HTML code. Smarty Template Engine is used to create HTML templates that are used in PHP scripts. PHP validates the code based on its validation rules. We should follow these rules while developing PHP scripts. The same way, Smarty Template Engine […]
PHP – Building a web-page using Smarty Template Engine
Smarty is a template engine, written in PHP. Smarty Template Engine is used to separate business logic from presentation logic. Business logic placed into .php files, whereas presentation layer will be in .tpl (Template Progamming Language) files. In this article we will develop a simple web-page using Smarty. Let’s take this simple web-page sample.html. <html> <head> […]
PHP – Setting up “Smarty Template Engine”
Smarty is the popular web template engine written in PHP for PHP. Main goal of Smarty is clean and easy separation of presentation layer from business logic layer. With Smarty, it will be easy to write code for developing simple websites as well as complex structured websites. Smarty achieved this by separating presentation layer to […]
How to mix HTML code and PHP code in PHP document?
PHP is the server side script runs at server side and generates an HTML output. HTML is prepared by using HTML tags runs at client side by web-browsers. PHP parser allows HTML code along with its PHP code. But we need to maintain separate section to differentiate which one is PHP code. Usually PHP code […]