2013-04-13 13:45:21 -04:00
|
|
|
#--------------------Yii CHtml---------------------------------
|
|
|
|
#Yii CHtml::radioButton
|
|
|
|
snippet yhrb
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::radioButton('${1:name}', ${2:false},array(${3:optionName}=>${4:optionValue} );
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::asset
|
|
|
|
snippet yhass
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::asset('${1:path}');
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeLabelEx
|
|
|
|
snippet yhale
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeLabelEx(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::encodeArray
|
|
|
|
snippet yheca
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::encodeArray(array(${1}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::normalizeUrl
|
|
|
|
snippet yhnurl
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::normalizeUrl(array('${1}'));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::resetButton
|
|
|
|
snippet yhsb
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::submitButton('${1:label}',array('${2:optionName}'=>${3:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::linkButton
|
|
|
|
snippet yhlinkb
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::linkButton('${1:lable}',array('${2:optionName}'=>${3:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeTextArea
|
|
|
|
snippet yhata
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeTextArea(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::ajaxButton
|
|
|
|
snippet yhajb
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::ajaxButton('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${6:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeId
|
|
|
|
snippet yhai
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeId(${1:model}, '${2:attribute}');
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeCheckBox
|
|
|
|
snippet yhacb
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeCheckBox(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeHiddenField
|
|
|
|
snippet yhahf
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeHiddenField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::encode
|
|
|
|
snippet yhec
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::encode(${1:text});
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::metaTag
|
|
|
|
snippet yhmtag
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::metaTag('${1:content}', '${2:name}', '${3:httpEquiv}',array('${4:optionName}'=>${5:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::dropDownList
|
|
|
|
snippet yhddl
|
|
|
|
echo CHtml::dropDownList('${1:name}', '${2:select}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
|
|
|
|
|
|
|
#Yii CHtml::listBox
|
|
|
|
snippet yhlb
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::listBox('${1:name}', '${2:select}',array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::script
|
|
|
|
snippet yhjs
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::script('${1:test}');
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::ajax
|
|
|
|
snippet yhaj
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::ajax(array(${1}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::textField
|
|
|
|
snippet yhtf
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::textField('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activePasswordField
|
|
|
|
snippet yhapf
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activePasswordField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::listData
|
|
|
|
snippet yhld
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::listData(array(${1}),'${2:valueField}', '${3:textField}','${4:groupField}');
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::mailto
|
|
|
|
snippet yhmt
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::mailto('${1:text}', '${2:email}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::image
|
|
|
|
snippet yhimg
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::image('${1:src}', '${2:alt}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeListBox
|
|
|
|
snippet yhalb
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeListBox(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeFileField
|
|
|
|
snippet yhaff
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeFileField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::closeTag
|
|
|
|
snippet yhct
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::closeTag('${1:tag}');
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeInputField
|
|
|
|
snippet yhaif
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeInputField('${1:type}', ${2:model}, '${3:attribute}',array('${4:optionName}'=>${5:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::scriptFile
|
|
|
|
snippet yhjsf
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::scriptFile('${1:url}');
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::radioButtonList
|
|
|
|
snippet yhrbl
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::radioButtonList('${1:name}', ${2:select}, array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::cssFile
|
|
|
|
snippet yhcssf
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::cssFile('${1:url}','${2:media}');
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::error
|
|
|
|
snippet yherr
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::error(${1:model}, '${2:attribute}');
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::passwordField
|
|
|
|
snippet yhpf
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::passwordField('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::hiddenField
|
|
|
|
snippet yhhf
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::hiddenField('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::cdata
|
|
|
|
snippet yhc
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::cdata(${1:text});
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::link
|
|
|
|
snippet yhlink
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::link('${1:text}',array(${2}),array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::errorSummary
|
|
|
|
snippet yherrs
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::errorSummary(${1:model},'${2:headerHtml}','${3:footerHtml}');
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::tag
|
|
|
|
snippet yht
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::tag('${1:tag}',array('${2:optionName}'=>${3:optionValue}),${4:false},${5:true});
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::ajaxLink
|
|
|
|
snippet yhajl
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::ajaxLink('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${6:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::label
|
|
|
|
snippet yhlabel
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::label('${1:label}', '${2:for}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeName
|
|
|
|
snippet yhan
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeName(${1:model}, '${2:attribute}');
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::statefulForm
|
|
|
|
snippet yhsform
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::statefulForm(array('${1}'), '${2:post}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::fileField
|
|
|
|
snippet yhff
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::fileField('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeTextField
|
|
|
|
snippet yhatf
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeTextField(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::css
|
|
|
|
snippet yhcss
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::css('${1:test}','${2:media}');
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::imageButton
|
|
|
|
snippet yhimgb
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::imageButton('${1:src}',array('${2:optionName}'=>${3:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::ajaxSubmitButton
|
|
|
|
snippet yhajsb
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::ajaxSubmitButton('${1:label}', '${2:url}',array('${3:ajaxOptionName}'=>${4:ajaxOptionValue}),array('${5:optionName}'=>${6:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::button
|
|
|
|
snippet yhb
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::button('${1:label}',array('${2:optionName}'=>${3:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::listOptions
|
|
|
|
snippet yhlo
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::listOptions('${1:selection}', array(${2}), array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeCheckBoxList
|
|
|
|
snippet yhacbl
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeCheckBoxList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::openTag
|
|
|
|
snippet yhot
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::openTag('${1:tag}', array('${2:optionName}'=>${3:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::checkBox
|
|
|
|
snippet yhcb
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::checkBox('${1:name}', ${2:false}, array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::textArea
|
|
|
|
snippet yhta
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::textArea('${1:name}', '${2:value}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::linkTag
|
|
|
|
snippet yhlinkt
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::linkTag('${1:relation}', '${2:type}', '${3:href}', '${4:media}',array('${5:optionName}'=>${6:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::resetButton
|
|
|
|
snippet yhrsb
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::resetButton('${1:label}',array('${2:optionName}'=>${3:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeRadioButtonList
|
|
|
|
snippet yharbl
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeRadioButtonList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::checkBoxList
|
|
|
|
snippet yhcbl
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::checkBoxList('${1:name}', ${2:select}, array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::form
|
|
|
|
snippet yhform
|
|
|
|
echo CHtml::form(array('${1}'), '${2:post}',array('${3:optionName}'=>${4:optionValue}));
|
|
|
|
|
|
|
|
#Yii CHtml::beginForm
|
|
|
|
snippet yhbeform
|
|
|
|
echo CHtml::beginForm(array('${1}'), '${2:post}',array('${3:optionName}'=>${4:optionValue}));
|
|
|
|
${5}
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::endForm();
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeDropDownList
|
|
|
|
snippet yhaddl
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeDropDownList(${1:model}, '${2:attribute}', array(${3}),array('${4:optionName}'=>${5:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeRadioButton
|
|
|
|
snippet yharb
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeRadioButton(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
#Yii CHtml::activeLabel
|
|
|
|
snippet yhal
|
2013-07-17 19:06:05 -04:00
|
|
|
echo CHtml::activeLabel(${1:model}, '${2:attribute}',array('${3:optionName}'=>${4:optionValue}));
|
2013-04-13 13:45:21 -04:00
|
|
|
|
|
|
|
|