I am trying to pass data to view but it gives me that error: Undefined variable: data
Controller:
public function article($page=1)
{           
    $info = array(
        "module_name" => $this->module_name,
        "view_name" => "cms/cms_view", // your view path
        "error_msg" => "",  
        "error_type" => "", 
        "data" => array(
        'content'=>$this->cms_model->get_cms($page),
        'test'=>'Hello world'
        ), //data which will be sent to view
    );
    $this->loadview->view($info);
}
Model:
 public function get_cms($page)
    {
        $query = $this->db->get_where('article', array('art_id' => $page),1);
        return $query->row();
    }
View:
<?php
        echo $data->content;
        ?>
 
     
     
    