Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between *.volt and *.phtml files in PhalconPHP?

Iin the sample projects of Phalcon, in the views directory we have some files with volt suffix and phtml suffix. What is the difference between this two suffix? When we must use Volt and when we must use phtml ?! please explain for me...

like image 884
Omid Ebrahimi Avatar asked Jan 14 '23 02:01

Omid Ebrahimi


1 Answers

.volt extension is used when the template engine set up in the application is Volt (http://docs.phalconphp.com/en/latest/reference/volt.html), .phtml is used when the template engine is PHP itself (http://docs.phalconphp.com/en/latest/reference/views.html#template-engines)

like image 93
twistedxtra Avatar answered Jan 17 '23 07:01

twistedxtra