1、控制器中传递数据参数:$data["notice"] =array('aaa','bbb'); $this->load->view('api/notice',$data);2、视图中解析: if(count($notice)>0){ foreach($notice as $key =>$value ){?> }} ?>