i am getting error **Call to a member function row() on a non-object** in codeigniter my controller is

```
public function edit_survey_pro($id) 
{
    $id = intval($id);
    $survey = $this->model->get("surveys",array("ID" => $id),100000);
    if (sizeof($survey) == 0) $this->template->error(lang("error_32"));
    $this->template->loadContent("user/edit_survey_pro", array(
        "survey" => $survey->row()
        )
    );
}

```

my model is

```
function get($table,$where='',$perpage=0,$start=0,$order_by='',$arr='')
{
    $this->db->from($table);
    if($perpage != 0 && $perpage != NULL)
        $this->db->limit($perpage,$start);
    if($where){
        $this->db->where($where);
    }
    if($order_by){
        $this->db->order_by($order_by);
    }
    if($arr=='')
            $query = $this->db->get()->result();
    else
            $query = $this->db->get()->result('array');
    if(!empty($query))
        if($perpage != 0 && $perpage != NULL)
            $result = $query;
        else
            $result = $query[0];
    else
        $result = array();
    return $result;
}

```

here loadContent() is just load the content with view path

```
public function loadContent($view,$data=array(),$die=0){
     //something to load the content
}

```