[eluser]gh0st[/eluser]
I've figured out a solution.
As I'm only working with 2 fields my solutions was pretty straight forward, but I worry about larger forms.
What I did was to force the view to accept an array called data, in which I set the fields for the resortTitle, resortContent, etc.
So for an "add" action they'd all be blank, and for "edit" action they'd be filled in from the DB source;
ie;
Code:
// controller (pseudo-code)
if ($action == 'add') {
$data['resortTitle'] = '';
$data['resortContent']= '';
} elseif ($action == 'edit') {
$data['resortTitle'] = 'Some title';
$data['resortContent'] = 'Some content';
}
Code:
// view
<input type="text" id="resortTitle" name="resortTitle" value="<?=set_value('resortTitle', $resortTitle);?>" />
That's how I resolved the problem, although I do worry about bigger forms because that'd be a lot of info to check.