We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

--template-engine Bug?

Hey guys.

Im trying generate views with volt extension:

phalcon scaffold news --template-engine=volt

But, phalcon generated phtml:

/var/www/rr2013/app/config/../../app/controllers/NewsController.php
/var/www/rr2013/app/config/../../app/views/news/index.phtml
/var/www/rr2013/app/config/../../app/views/news/search.phtml
/var/www/rr2013/app/config/../../app/views/news/new.phtml
/var/www/rr2013/app/config/../../app/views/news/edit.phtml

Wrong syntax used?

edited Oct '14

My test:

phalcon scaffold --template-path=/var/www/ --template-engine=volt --force=true table-name=photo_news

Dump $options:

array(7) {
  'name' =>
  NULL
  'schema' =>
  NULL
  'force' =>
  bool(true)
  'genSettersGetters' =>
  bool(false)
  'directory' =>
  NULL
  'templatePath' =>
  bool(true)
  'templateEngine' =>
  bool(true)
}

Why is that?

'templateEngine' =>
  bool(true)

and

'templatePath' =>
  bool(true)


98.9k

Hi, the forum is not intended to report bugs, could you please submit it to the repository issue tracker https://github.com/phalcon/phalcon-devtools?