[eluser]Unknown[/eluser]
[quote author="Frank Rocco" date="1300745551"]My values that work for me are:
Code:
$config['index_page'] = "";
$config['uri_protocol'] = "AUTO";
[/quote]
Thanks for the tip, but, I'm still totally stuck. When I changed to $config['index_page'] = ""; everything stopped working.
I'm going to provide some more details...
My Form
Code:
foreach ($front_cust->result() as $f)
{
echo form_open('front_custom_c/edit_front_custom');?>
<?php echo form_hidden('id',set_value('id',$f->id));?>
<fieldset class="fieldset">
<legend>Edit Custom Front Area</legend>
<label for="Title">Title</label>
<input type="text" name="title" size="40" value='<?php echo $f->title?>'/> <br/>
<label for="Description">Description</label>
<TEXTAREA Name="description" rows="5" cols="50"><?php echo $f->description?></TEXTAREA><br/>
<label for=""> </label>
<input type="submit" value="Submit" class="button"/>
<?php echo form_close();
}
}
My Controller Function
Code:
function edit_front_custom($id,$title,$description)
{
$id = $this->input->post('id');
$title = $this->input->post('title');
$description = $this->input->post('description');
//$description = nl2br($this->input->post('description'));
$this->load->model('barber_model','',TRUE);
echo $id;
echo $title;
echo $description;
$this->barber_model->edit_front_custom($id,$title,$description);
redirect('welcome');
}
My Model
Code:
function edit_front_custom($id,$title,$description)
{
$data = array(
'title' => $title,
'description' => $description,);
$this->db->where('id', $id);
$this->db->update('front_custom', $data);
}
Also, not sure that it matters but this project includes Ion Auth.
Again, I'm getting errors on submit but the data is updating. I'm really stuck and am getting frustrated fast.