I am trying to be a more conforming civicrm coder.

Smarty used by civicrm for pages (and forms?)

I have never used Smarty.. Is it going to be part of civicrm going forward? And are there any tips for writing good future proof smarty?

1 Answer 1


Going forward, much of the Civi UI will be written in Angular. However at least 95% of the application uses Smarty and it's still a perfectly acceptable way to mark up a form or page.

Depending on your use case you may be able to create an Angular page for what you want.

If you are writing an extension, you can try both. Use civix generate:page or civix generate:form to create traditional smarty-based pages & forms. Or try the newer civix generate:angular-* commands for the alternatives.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.