![](https://dl.dropbox.com/s/ahmicfl4zuvdn7b/Screenshot_1.png)
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Categorias_db extends CI_Model {
public function __construct()
{
parent::__construct();
//Do your magic here
}
function guardar($categoria){
$datos=array(
'nombre'=>$categoria
);
$this->db->insert('tb_categorias',$datos);
}
}
/* End of file categorias_db.php */
/* Location: ./application/models/categorias_db.php */