What is Smarty

  • By admin
  • Smarty ,
  • Comments are off

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. This implies that PHP code is application logic, and is separated from the presentation.

Smarty is a tool used by libraries and frameworks to manage what would be the view in MVC.

It allows you to further separate your business logic from its visualization, by removing as much PHP code as possible away from your views.