Skip to content

Commit 41c2d60

Browse files
committed
fix
submenu3.menu t(:template) do |submenu4| submenu4.command '[FV]Controller Template' submenu4.command '[FV]View Template' end
1 parent 92c1a4c commit 41c2d60

File tree

2 files changed

+7
-32
lines changed

2 files changed

+7
-32
lines changed

bundle.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,8 @@
153153
submenu4.command 'strip_image_tags'
154154
submenu4.command 'encode_php_tags'
155155
end
156-
submenu3.menu t(:template) do |submenu4|
157-
submenu4.command '[FV]Controller Template'
158-
submenu4.command '[FV]View Template'
159-
end
156+
157+
submenu3.command '[FV]Controller Template'
160158
end
161159

162160

snippets/snippets.rb

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -530,11 +530,11 @@
530530

531531
snippet "[FV]Controller Template" do |s|
532532
s.trigger = 'form_v'
533-
s.expansion = ' $this->load->library(\'form_validation\');
534-
$this->form_validation->set_rules(\'username\', \'Username\', \'trim|required|min_length[5]|max_length[12]|xss_clean\');
535-
$this->form_validation->set_rules(\'password\', \'Password\', \'trim|required|matches[passconf]|md5\');
536-
$this->form_validation->set_rules(\'passconf\', \'Password Confirmation\', \'trim|required\');
537-
$this->form_validation->set_rules(\'email\', \'Email\', \'trim|required|valid_email\');
533+
s.expansion = ' \$this->load->library(\'form_validation\');
534+
\$this->form_validation->set_rules(\'username\', \'Username\', \'trim|required|min_length[5]|max_length[12]|xss_clean\');
535+
\$this->form_validation->set_rules(\'password\', \'Password\', \'trim|required|matches[passconf]|md5\');
536+
\$this->form_validation->set_rules(\'passconf\', \'Password Confirmation\', \'trim|required\');
537+
\$this->form_validation->set_rules(\'email\', \'Email\', \'trim|required|valid_email\');
538538
if ($this->form_validation->run() == FALSE)
539539
{
540540
$this->load->view(\'myform\');
@@ -545,29 +545,6 @@
545545
}'
546546
end
547547

548-
snippet "[FV]View Template" do |s|
549-
s.trigger = 'form_v'
550-
s.expansion = ' <?php echo validation_errors(); ?>
551-
552-
<?php echo form_open(\'form\'); ?>
553-
554-
<h5>Username</h5>
555-
<input type="text" name="username" value="<?php echo set_value(\'username\'); ?>" size="50" />
556-
557-
<h5>Password</h5>
558-
<input type="text" name="password" value="<?php echo set_value(\'password\'); ?>" size="50" />
559-
560-
<h5>Password Confirm</h5>
561-
<input type="text" name="passconf" value="<?php echo set_value(\'passconf\'); ?>" size="50" />
562-
563-
<h5>Email Address</h5>
564-
<input type="text" name="email" value="<?php echo set_value(\'email\'); ?>" size="50" />
565-
566-
<div><input type="submit" value="Submit" /></div>
567-
568-
</form>'
569-
end
570-
571548
#Url_helper
572549
snippet "$this->load->helper(\'url\')" do |s|
573550
s.trigger = 'url'

0 commit comments

Comments
 (0)