KnpMenu - JSON Renderer to support Dojo Dijit/Tree - Ajax

This is a modified version of the earlier post which created a static JSON representation of a menu. What makes it different is that the earlier version rendered the items from the MenuBuilder into a static JSON object that was embedded in a page with… more »

KnpMenu - JSON Renderer to support Dojo Dijit/Tree

I wrote some code that parsed through the default KNP menu HTML and created a Dijit menu. It worked, but it was slow and awkward. I couldn't find an easy way to get the KNP menu in the JSON form that would work well with Dijit/Tree, so I wrote my own.… more »

Symfony 3 - EntityType / Dojo - Select Integration

If you use Dojo to provide a polished interface with a Symfony 3 application programmatically, you may use a data- attribute on a select tag to pass the options from Symfony 3 to Dojo. The entity in this case is phone number type. This is a table with… more »

Presenting KnpMenus with Dojo

This Dojo module will traverse a menu delivered by the KnpMenuBundle and present it as a Dijitized menu bar. There may be a few extraneous modules included, but this code will likely be extended. Codedefine([    "dojo/_base/declare… more »

Easing JavaScript Development with Builds under Symfony with Assetic

Dojo has a great build process which allows you to create a optimized and minimized files for the client side (and more!). In a production environment, this greatly improves performance. However, building the code after every change will slow developm… more »

:: Next >>