5. Commands

SmartyBundle extends the default Symfony2 command line interface by providing the commands described below.

5.1. Compile Command

smarty:compile

Compiles all known Smarty templates.

5.1.1. Usage

The following command finds all known Smarty templates and compiles them:

php app/console smarty:compile

Alternatively you may pass an optional @AcmeMyBundle argument to only search for templates in a specific bundle:

php app/console smarty:compile @AcmeMyBundle

5.1.2. Available Options

  • --force - Force the compilation of all templates even if they weren’t modified.
  • --verbose - Print information about each template being currently compiled.

Table Of Contents

Previous topic

4. Cookbook

Next topic

6. Extensions