este es el error que me da el server
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: dataArray
Filename: Product/new_product.php
Line Number: 4
funcion del controlador
Código PHP:
function providerCombox(){
$myData = array();
$data = $this->mod_Provider->showProvider();
$dataArray = array('rs_articulos'=>$data);
$this->load->view('Product/new_product',$dataArray);
}
Código PHP:
$myData = array();
foreach ($dataArray as $row){
$myData[] = $row;
}
$viewData = json_encode($myData);