Until recently, I had never heard of phtml
, however recently I see that it is being used a lot, mainly by some frameworks (such as Zend2).
Since I can usually put html content inside a .php
file, I ask myself what is the use of a .phtml
file?
Some points you might like to know:
- Does it have any performance or performance advantages?
- When should I opt for the
.phtml
extension? - Has this extension been created for what purpose?