title: Pass multiple Arrays to view in code igniter
body: <p>my model is this,,, two functions view and spl</p>
  
  <pre><code> function view(){
  
              $result = $this -&gt; db -&gt; get('tb_ourcity');
          return $result-&gt;result_array();
  
          //$query = $this-&gt;db-&gt;query('SELECT * from `adds`');
          //return $query-&gt;result_array();
  }    
  
  
   function spl(){
  
              $result2 = $this -&gt; db -&gt; get('td_spei');
          return $result2-&gt;result_array();
  
          //$query = $this-&gt;db-&gt;query('SELECT * from `adds`');
          //return $query-&gt;result_array();
  }
  </code></pre>
  
  <p>my controller looks like ths</p>
  
  <pre><code>    public function index()
  {
      $data['result']=$this-&gt;load_city-&gt;view();
      $data2['result']=$this-&gt;load_city-&gt;spl();
      $this-&gt;load-&gt;view('home_view',$data);
  }
  </code></pre>
  
  <p>i have two arrays named $data and $data2..</p>
  
  <p>i want to use these two arrays simultaneously in the home_view. so how to pass these 2 arrays in single view</p>