Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How to generate templates for Smarty from OIL command line tool?
  • I have already enabled Smarty and do some tests manuelement.
    I now try to use the tool OIL in command line. Example: php generate scaffold oil news title: string description: text and then php oil migrate refine. But, all views are generated in php! How to generate them directly into TPL Smarty? Thank you very much, I'm confused with the parser Smarty instantly ...
  • FuelPHP doesn't provide support for Smarty (or other template engines), and neither does the Oil package. You can enable template engine support by installing the Parser package, and installing your engine of choice. That doesn't mean everything all of a sudden will become template aware. The views Oil uses to generate the code are located in the views folder of the oil package. You can copy those to app/views and modify them to your liking.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion