Symfony stuff

Sorry, there was a TextPattern blog here with a couple of entries, but I nuked it to make way for some mobile web toys. Here are my symfony plugins. They're MIT licensed, so you can more or less do anything you like with them as long as you credit me for your success, and don't blame me for your failures. Obviously if you want to give me lots of money, you can do that too. If you use any of them, please let me know.

sfPHPTALPlugin

This is a simple drop-in replacement View class for symfony which uses the PHPTAL template language instead of the normal PHP one. The nicest feature of TAL is that you can take your XHTML prototypes, including dummy content, and turn them directly into application templates - all the template stuff is stored in XML attributes. TAL also escapes user input by default, so you're less likely to accidentally open up cross-site scripting flaws to your users.

sfMobileDetectPlugin

In simple terms: installing this plugin allows you make your symfony application mobile-capable just by adding alternate templates. This plugin has three parts: first, an interface to the WURFL XML library of mobile browser capabilities, so that you can easily detect mobile browsers and sort them into "browser classes" by specifying a series of minimum requirements. The second part is a replacement View class that automatically selects a different output template if one exists for the current browser class. The default configuration splits phones into high-spec and simple based on their HTML support level, but this can be overridden. Finally, a component is provided that displays a browser-class switcher - this can either be used just during development, or to allow end-users to switch between browser-classes themselves.

tuiExternalLinkPlugin

Extremely simple filter plugin that adds a CSS class to all absolute URLs – this allows you to show external links differently, without any extra coding. An example class and stylesheet are included, but both can be overridden.

View as: Desktop | 3G/iPhone | Basic mobile | Detect

↑ Top | Home | Movie ratings | Symfony plugins | Privacy