My error:Message: Undefined variable: content
the "content"variable used in my view is apparently not defined. however, when i do var\_dump($result); to test the content.. i get: 

> 
> array(1) { [0]=> array(7) { ["id"]=> string(3) "148" ["description"]=>
>  string(9) "33" ["date"]=> string(10) "2015-05-30" ["status"]=>
>  string(1) "1" ["Title"]=> string(2) "33" ["notes"]=> string(9) "33"
>  ["time"]=> string(8) "07:28:36" } }
> 
> 
> 

MY CONTROLLER:

```
public function edit_news_form() {

   $this->load->view('edit_news_form');

    $this->load->model('users_model');
    $id = $this->uri->segment(3);
    $result=$this->users_model->get_id($id);
    $data['content']=$result;

   }

   public function edit(){
    $this->load->library('form_validation');
    $this->load->model('users_model');
    $id = $this->uri->segment(3);
    $result=$this->users_model->get_id($id);
    $data['content']=$result;

    $this->db->trans_start();       

    $title = $this->input->post('title');
    $notes = $this->input->post('notes');
    $description = $this->input->post('description');
    $date = date('Y-m-d',strtotime($this->input->post('date')));
    $status = 1;
    $time = date('h:i:s',strtotime($this->input->post('time')));

    $data = array(
            'Title' => $title,
            'description' => $description,
            'date'=>$date,
            'time'=>$time,
            'status' => $status,
            'notes' => $notes,
            );
    $this->users_model->update($id,$data);
    $this->db->trans_complete();

   }

}

```

MY MODEL:

```
 function get_id($id){
        $this->db->where('id',$id);     
        $query = $this->db->get('news');
        return $query->result_array();
    }

function update($id,$data){
    $this->db->where('id', $id);
    $this->db->update('news',$data);
    }

```

MY VIEW:

```
     <label>

         <?php echo form_open('resetPasswordController/edit/'.$this->uri->segment(3))?>
        <textarea name="description" rel="815"><?php echo $content[0]['description'];?></textarea>
    </div>
</label>

```