Permalink
Browse files

first commit

  • Loading branch information...
david-soyez committed Feb 4, 2012
1 parent 3f56458 commit e1cf97bc08f30a81579b56134346f8ee5d6aef6d
Showing with 539 additions and 0 deletions.
  1. +6 −0 yii-CLinkPager.sublime-snippet
  2. +9 −0 yii-IfIsAjaxRequest.sublime-snippet
  3. +6 −0 yii-activeCheckBox.sublime-snippet
  4. +6 −0 yii-activeCheckBoxList.sublime-snippet
  5. +6 −0 yii-activeDropDownList.sublime-snippet
  6. +6 −0 yii-activeFileField.sublime-snippet
  7. +6 −0 yii-activeHiddenField.sublime-snippet
  8. +6 −0 yii-activeId.sublime-snippet
  9. +6 −0 yii-activeInputField.sublime-snippet
  10. +6 −0 yii-activeLabel.sublime-snippet
  11. +6 −0 yii-activeLabelEx.sublime-snippet
  12. +6 −0 yii-activeListBox.sublime-snippet
  13. +6 −0 yii-activeName.sublime-snippet
  14. +6 −0 yii-activePasswordField.sublime-snippet
  15. +6 −0 yii-activeRadioButton.sublime-snippet
  16. +6 −0 yii-activeRadioButtonList.sublime-snippet
  17. +6 −0 yii-activeTextArea.sublime-snippet
  18. +6 −0 yii-activeTextField.sublime-snippet
  19. +6 −0 yii-ajax.sublime-snippet
  20. +6 −0 yii-ajaxButton.sublime-snippet
  21. +6 −0 yii-ajaxLink.sublime-snippet
  22. +6 −0 yii-ajaxSubmitButton.sublime-snippet
  23. +6 −0 yii-asset.sublime-snippet
  24. +8 −0 yii-beginForm.sublime-snippet
  25. +6 −0 yii-button.sublime-snippet
  26. +6 −0 yii-cache-add.sublime-snippet
  27. +6 −0 yii-cache-flush.sublime-snippet
  28. +6 −0 yii-cache-get.sublime-snippet
  29. +6 −0 yii-cdata.sublime-snippet
  30. +6 −0 yii-checkBox.sublime-snippet
  31. +6 −0 yii-checkBoxList.sublime-snippet
  32. +6 −0 yii-closeTag.sublime-snippet
  33. +11 −0 yii-controller-action.sublime-snippet
  34. +47 −0 yii-controller-class.sublime-snippet
  35. +6 −0 yii-cookies.sublime-snippet
  36. +6 −0 yii-css.sublime-snippet
  37. +6 −0 yii-cssFile.sublime-snippet
  38. +6 −0 yii-delete-cache.sublime-snippet
  39. +6 −0 yii-dropDownList.sublime-snippet
  40. +6 −0 yii-encode.sublime-snippet
  41. +6 −0 yii-encodeArray.sublime-snippet
  42. +6 −0 yii-error.sublime-snippet
  43. +6 −0 yii-errorSummary.sublime-snippet
  44. +6 −0 yii-fileField.sublime-snippet
  45. +7 −0 yii-form.sublime-snippet
  46. +6 −0 yii-hiddenField.sublime-snippet
  47. +6 −0 yii-image.sublime-snippet
  48. +6 −0 yii-imageButton.sublime-snippet
  49. +6 −0 yii-import.sublime-snippet
  50. +6 −0 yii-isAjaxRequest.sublime-snippet
  51. +6 −0 yii-isPostRequest.sublime-snippet
  52. +6 −0 yii-json-encode.sublime-snippet
  53. +6 −0 yii-label.sublime-snippet
  54. +6 −0 yii-link.sublime-snippet
  55. +6 −0 yii-linkButton.sublime-snippet
  56. +6 −0 yii-linkTag.sublime-snippet
  57. +6 −0 yii-listBox.sublime-snippet
  58. +6 −0 yii-listData.sublime-snippet
  59. +6 −0 yii-listOptions.sublime-snippet
  60. +6 −0 yii-log.sublime-snippet
  61. +6 −0 yii-mailto.sublime-snippet
  62. +6 −0 yii-metaTag.sublime-snippet
  63. +55 −0 yii-model-class.sublime-snippet
  64. +6 −0 yii-model-count.sublime-snippet
  65. +6 −0 yii-model-countBySql.sublime-snippet
  66. +6 −0 yii-model-deleteAll.sublime-snippet
  67. +6 −0 yii-model-deleteByPk.sublime-snippet
  68. +6 −0 yii-model-exists.sublime-snippet
  69. +6 −0 yii-model-find.sublime-snippet
  70. +6 −0 yii-model-findAll.sublime-snippet
  71. +6 −0 yii-model-findAllByAttributes.sublime-snippet
  72. +6 −0 yii-model-findAllByPk.sublime-snippet
  73. +6 −0 yii-model-findBySql.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php \$this->widget('CLinkPager', array('pages'=>\$pages${1:, 'header'=>'$2'})) ?>$0]]></content>
+ <tabTrigger>linkpager</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CLinkPager</description>
+</snippet>
@@ -0,0 +1,9 @@
+<snippet>
+ <content><![CDATA[if(Yii::app()->request->isAjaxRequest == TRUE)
+{
+ $0
+}]]></content>
+ <tabTrigger>ifisajax</tabTrigger>
+ <scope>source.php</scope>
+ <description>Yii IF isAjaxRequest</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeCheckBox(${1:model}, '${2:attribute}'${3:, array('${4:optionName}'=>${5:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hacb</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeCheckBox</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeCheckBoxList(${1:model}, '${2:attribute}', array($3)${4:, array('${5:optionName}'=>${6:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hacbl</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeCheckBoxList</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeDropDownList(${1:model}, '${2:attribute}', array($3)${4:, array('${5:optionName}'=>${6:optionValue})}); ?>$0]]></content>
+ <tabTrigger>haddl</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeDropDownList</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeFileField(${1:model}, '${2:attribute}'${3:, array('${4:optionName}'=>${5:optionValue})}); ?>$0]]></content>
+ <tabTrigger>haff</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeFileField</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeHiddenField(${1:model}, '${2:attribute}'${3:, array('${4:optionName}'=>${4:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hahf</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeHiddenField</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeId(${1:model}, '${2:attribute}'); ?>$0]]></content>
+ <tabTrigger>hai</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeId</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeInputField('${1:type}', ${2:model}, '${3:attribute}'${4:, array('${5:optionName}'=>${6:optionValue})}); ?>$0]]></content>
+ <tabTrigger>haif</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeInputField</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeLabel(${1:model}, '${2:attribute}'${3:, array('${4:optionName}'=>${5:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hal</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeLabel</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeLabelEx(${1:model}, '${2:attribute}'${3:, array('${4:optionName}'=>${5:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hale</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeLabelEx</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeListBox(${1:model}, '${2:attribute}', array($3)${4:, array('${5:optionName}'=>${6:optionValue})}); ?>$0]]></content>
+ <tabTrigger>halb</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeListBox</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeName(${1:model}, '${2:attribute}'); ?>$0]]></content>
+ <tabTrigger>han</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeName</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activePasswordField(${1:model}, '${2:attribute}'${3:, array('${4:optionName}'=>${5:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hapf</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activePasswordField</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeRadioButton(${1:model}, '${2:attribute}'${3:, array('${4:optionName}'=>${5:optionValue})}); ?>$0]]></content>
+ <tabTrigger>harb</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeRadioButton</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeRadioButtonList(${1:model}, '${2:attribute}', array($3)${4:, array('${5:optionName}'=>${6:optionValue})}); ?>$0]]></content>
+ <tabTrigger>harbl</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeRadioButtonList</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeTextArea(${1:model}, '${2:attribute}'${3:, array('${4:optionName}'=>${5:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hata</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeTextArea</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::activeTextField(${1:model}, '${2:attribute}'${3:, array('${4:optionName}'=>${5:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hatf</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::activeTextField</description>
+</snippet>
View
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::ajax(array($1)); ?>$0]]></content>
+ <tabTrigger>haj</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::ajax</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::ajaxButton('${1:label}', '${2:url}'${3:, array('${4:ajaxOptionName}'=>${5:ajaxOptionValue})}${6:, array('${7:optionName}'=>${8:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hajb</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::ajaxButton</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::ajaxLink('${1:label}', '${2:url}'${3:, array('${4:ajaxOptionName}'=>${5:ajaxOptionValue})}${6:, array('${7:optionName}'=>${8:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hajl</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::ajaxLink</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::ajaxSubmitButton('${1:label}', '${2:url}'${3:, array('${4:ajaxOptionName}'=>${5:ajaxOptionValue})}${6:, array('${7:optionName}'=>${8:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hajsb</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::ajaxSubmitButton</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::asset('${1:path}'); ?>$0]]></content>
+ <tabTrigger>hass</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::asset</description>
+</snippet>
@@ -0,0 +1,8 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::beginForm(${1:array('$2')}, '${3:post}'${4:, array('${5:optionName}'=>${6:optionValue})}); ?>
+$0
+<?php echo CHtml::endForm(); ?>]]></content>
+ <tabTrigger>hbeform</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::beginForm</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::button('${1:label}'${2:, array('${3:optionName}'=>${4:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hb</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::button</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[Yii::app()->cache->add('${1:key}', ${2:value}, ${3:expire}${4:, new C$5CacheDependency($6)});$0]]></content>
+ <tabTrigger>addcache</tabTrigger>
+ <scope>source.php</scope>
+ <description>Yii Yii::app()->cache->add</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[Yii::app()->cache->flush();$0]]></content>
+ <tabTrigger>flushcache</tabTrigger>
+ <scope>source.php</scope>
+ <description>Yii Flush cache</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[Yii::app()->cache->get('${1:key}');$0]]></content>
+ <tabTrigger>getcache</tabTrigger>
+ <scope>source.php</scope>
+ <description>Yii Get cache</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::cdata(${1:text}); ?>$0]]></content>
+ <tabTrigger>hc</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::cdata</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::checkBox('${1:name}', ${2:false}${3:, array('${4:optionName}'=>${5:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hcb</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::checkBox</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::checkBoxList('${1:name}', ${2:select}, array($3)${4:, array('${5:optionName}'=>${6:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hcbl</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::checkBoxList</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::closeTag('${1:tag}'); ?>$0]]></content>
+ <tabTrigger>hct</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::closeTag</description>
+</snippet>
@@ -0,0 +1,11 @@
+<snippet>
+ <content><![CDATA[
+ public function action${1:Index}()
+ {
+ $0
+ }
+]]></content>
+ <tabTrigger>act</tabTrigger>
+ <scope>source.php</scope>
+ <description>Yii Create controller action method</description>
+</snippet>
@@ -0,0 +1,47 @@
+<snippet>
+ <content><![CDATA[
+<?php
+
+/**
+ * ${1:}
+ */
+class ${2:Site}Controller extends ${3:CController}()
+{
+ public function action${4:Index}()
+ {
+ $0
+ }
+
+ // -----------------------------------------------------------
+ // Uncomment the following methods and override them if needed
+ /*
+ public function filters()
+ {
+ // return the filter configuration for this controller, e.g.:
+ return array(
+ 'inlineFilterName',
+ array(
+ 'class'=>'path.to.FilterClass',
+ 'propertyName'=>'propertyValue',
+ ),
+ );
+ }
+
+ public function actions()
+ {
+ // return external action classes, e.g.:
+ return array(
+ 'action1'=>'path.to.ActionClass',
+ 'action2'=>array(
+ 'class'=>'path.to.AnotherActionClass',
+ 'propertyName'=>'propertyValue',
+ ),
+ );
+ }
+ */
+}
+]]></content>
+ <tabTrigger>controller</tabTrigger>
+ <scope>text</scope>
+ <description>Yii Create controller class</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[Yii::app()->request->cookies['$1']$0]]></content>
+ <tabTrigger>co</tabTrigger>
+ <scope>source.php</scope>
+ <description>Yii Yii::app()->request->cookies</description>
+</snippet>
View
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::css('${1:test}'${2:, '${3:media}'}); ?>$0]]></content>
+ <tabTrigger>hcss</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::css</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::cssFile('${1:url}'${2:, '${3:media}'}); ?>$0]]></content>
+ <tabTrigger>hcssf</tabTrigger>
+ <scope>text.html</scope>
+ <description>Yii CHtml::cssFile</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[Yii::app()->cache->delete('${1:key}');$0]]></content>
+ <tabTrigger>delcache</tabTrigger>
+ <scope>source.php</scope>
+ <description>Yii Yii::app()->cache->delete</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::dropDownList('${1:name}', '${2:select}', array($3)${4:, array('${5:optionName}'=>${6:optionValue})}); ?>$0]]></content>
+ <tabTrigger>hddl</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::dropDownList</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::encode(${1:text}); ?>$0]]></content>
+ <tabTrigger>hec</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::encode</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::encodeArray(array($1)); ?>$0]]></content>
+ <tabTrigger>heca</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::encodeArray</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::error(${1:model}, '${2:attribute}'); ?>$0]]></content>
+ <tabTrigger>herr</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::error</description>
+</snippet>
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[<?php echo CHtml::errorSummary(${1:model}${2:, '${3:headerHtml}'}${4:, '${5:footerHtml}'}); ?>$0]]></content>
+ <tabTrigger>herrs</tabTrigger>
+ <scope>text</scope>
+ <description>Yii CHtml::errorSummary</description>
+</snippet>
Oops, something went wrong.

0 comments on commit e1cf97b

Please sign in to comment.