phalcon-devtools icon indicating copy to clipboard operation
phalcon-devtools copied to clipboard

Inconsistent Template File Generation

Open netblue opened this issue 13 years ago • 6 comments

Create project creates a skeleton based on volt templates.
The config/services.php is setup to load the volt engine. The main view is index.volt

Running the scaffold command generates .phtml files and not .volt files. Thus, the layouts don't really work unless manually converting all the files to .volt templates, or disabling the volt engine and converting the main layout to a .phtml file.

A user should probably have the option to generate .volt or .phtml in commands that generate template files.

netblue avatar Apr 10 '13 21:04 netblue

What command are you using to generate the scaffold?

ghost avatar Apr 11 '13 00:04 ghost

phalcon scaffold posts

I was following along with this tutorial: http://blog.phalconphp.com/post/36648855158/tutorial-your-first-encounter-with-phalcon-part-2

netblue avatar Apr 11 '13 17:04 netblue

Same question ...

GesJeremie avatar May 20 '14 23:05 GesJeremie

phalcon scaffold posts --template-engine=volt

GesJeremie avatar May 20 '14 23:05 GesJeremie

lets have create project add a file to .phalcon with the template engine in it. Then scaffold can read this

rianorie avatar Jan 29 '15 23:01 rianorie

It works in latest stable version. I suggest close this issue.

sergeysviridenko avatar Aug 31 '17 15:08 sergeysviridenko