Skip to content

Commit

Permalink
fixing several bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
keevitaja committed Nov 15, 2013
1 parent d9bd9e6 commit 155d2f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions controllers/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public function edit($id = 0)
// Build the view using sample/views/admin/form.php
$this->template
->title($this->module_details['name'], lang('sample.edit'))
->set('sample', $sample)
->build('admin/form');
}

Expand Down
2 changes: 1 addition & 1 deletion controllers/sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ public function index($offset = 0)
->set('items', $items)
->set('items_exist', $items_exist)
->set('pagination', $pagination)
->build('index', $data);
->build('index');
}
}
4 changes: 2 additions & 2 deletions views/admin/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<ul>
<li class="<?php echo alternator('', 'even'); ?>">
<label for="name"><?php echo lang('sample:name'); ?> <span>*</span></label>
<div class="input"><?php echo form_input('name', set_value('name', $name), 'class="width-15"'); ?></div>
<div class="input"><?php echo form_input('name', set_value('name', $sample->name), 'class="width-15"'); ?></div>
</li>

<li class="<?php echo alternator('', 'even'); ?>">
<label for="slug"><?php echo lang('sample:slug'); ?> <span>*</span></label>
<div class="input"><?php echo form_input('slug', set_value('slug', $slug), 'class="width-15"'); ?></div>
<div class="input"><?php echo form_input('slug', set_value('slug', $sample->slug), 'class="width-15"'); ?></div>
</li>
</ul>

Expand Down

0 comments on commit 155d2f5

Please sign in to comment.