Skip to content

Cristian Radulescu

Software development tips&tricks

  • Home
  • Software Development
    • Software Development
    • PHP
    • Symfony2
    • Composer
    • Doctrine
    • MySQL
    • WordPress
    • Twig
    • JavaScript
    • React JS
  • Linux
    • Linux
    • Ubuntu
    • CLI
  • More
    • Back

Category Archives: Twig

Doctrine entities in Twig templates

In a Symfony2 project, Doctrine entities can be used inside Twig templates with the help of Twig extensions.
The example works with the standard Symfony2 installation and the AcmeDemoBundle.

Posted byCristian RadulescuJanuary 30, 2013January 26, 2018Posted inDoctrine, PHP, Programming, Symfony2, TwigTags: Twig extensions7 Comments on Doctrine entities in Twig templates

Recent posts

  • How to create a Composer plugin
  • First encounter with React JS
  • Add PDF export functionality in SonataAdminBundle
  • Beautiful strings and the PHP solution
  • Doctrine entities in Twig templates
  • Easy file sharing with Python SimpleHTTPServer
  • Understanding file permissions and ownership on Linux
  • Enable trackball pulse notifications for HTC Hero with CM7
  • Display random posts in WordPress
  • Get random results from a MySql table

Recent comments

  • webdesign2000 on Add PDF export functionality in SonataAdminBundle
  • Sree on Remove spaces from an input field with JavaScript
  • Faithap on Display random posts in WordPress
  • leila fahimi on Add PDF export functionality in SonataAdminBundle
  • dhafer on Add PDF export functionality in SonataAdminBundle
  • Zuhayer Tahir on Doctrine entities in Twig templates
  • MySQL: Insert value 0 for primary keys with auto increment – Albara Ramli on Insert value “0” for primary keys with auto increment in MySQL
  • amine on Doctrine entities in Twig templates
  • Cristian Radulescu on PHP CLI increase memory limit
  • Robert Johnson on PHP CLI increase memory limit
Cristian Radulescu, Proudly powered by WordPress. Privacy Policy