Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.33 KB

CommonExtension.md

File metadata and controls

48 lines (35 loc) · 1.33 KB

Meritoo Common Bundle

Common & useful classes, resources, extensions. Based on Symfony framework.

CommonExtension

Located here: Meritoo\CommonBundle\Twig\CommonExtension. It's Twig extension that provides functions and filters for common operations.

Filters

meritoo_common_empty_value

Verifies/Filters given value if is empty. Returns replacement of empty value if given value is empty. Otherwise - given value.

Example below.

<p>First name: {{ first_name | meritoo_common_empty_value }}</p>

Result:

<p>First name: -</p>

More

  1. Configuration
  2. Dependency Injection Extension
  3. Descriptor of application
  4. Descriptor of bundle
  5. Descriptors of bundles
  6. Services:
  7. Tests
  8. Translations
  9. Twig extensions:

‹ Back to Readme