Skip to content

Commit

Permalink
Merge pull request #59 from SunDi3yansyah/master
Browse files Browse the repository at this point in the history
revision from SunDi3yansyah yang ganteng
  • Loading branch information
mpmont committed Oct 25, 2015
2 parents e9fb22b + 42f8c25 commit e894d99
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion form_validation.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
\$this->form_validation->set_rules('${1:fieldname}', '${2:fieldlabel}', '${3:trim|required|min_length[5]|max_length[12]|xss_clean}');
\$this->form_validation->set_rules('${1:fieldname}', '${2:fieldlabel}', '${3:trim}|${4:required}|${5:min_length[${6:5}]}|${7:max_length[${8:12}]}|${9:xss_clean}');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>form_validation</tabTrigger>
Expand Down
14 changes: 14 additions & 0 deletions form_validation_run.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<snippet>
<content><![CDATA[
if (\$this->form_validation->run() == ${1:TRUE or FALSE}) {
${2:# code...}
} else {
${3:# code...}
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>form_validation_run</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
<description>CI - Form Validation Run</description>
</snippet>
10 changes: 10 additions & 0 deletions form_validation_set_value.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
\$this->form_validation->set_value('${1:field}')
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>form_validation_sv</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
<description>CI - Form Validation Set Value</description>
</snippet>

0 comments on commit e894d99

Please sign in to comment.