PHP Symfony Snippets For TextMate |
|
March 21, 2008 |
Helper tags in symfony is much like in other frameworks. Some of them are included by default, but other aren’t. You can indeed set all the helpers you need in settings.yml, but some (myself included) prefer to include the helpers only when necessary. The following snippets require you are in HTML scope.
For JavaScript:
<?php ?>$0
For Validation:
<?php ?>$0
For Object:
<?php use_helper('Object') ?>$0
For Text:
<?php use_helper('Text') ?>$0
Set to “Tab Trigger” “use”. Set “Scope Selector” to
Here a QuickTime movie (with no sound) that shows how these work. The way above doesn’t support using more than one helper at a time. You might very well have time you need more than one helpers. You can also add the following to make this process easier.
<?php ?>$0
There should be a better way to add the multiple helpers. I just can’t come up with a better solution now.



March 21, 2008
Leave a Reply