public function insert_invoice(){
$session = session();
$id_user = $session->get('user_id');
$fechaActual = date('d-m-Y H:i:s');
$accountModel = new AccountModel();
$request = \Config\Services::request();
print_r($request);
//var_dump($request->getPost(json_decode($datastring)));
/*$category = $request->getPost('category');
$description_rule = $request->getPost('description_rule');
$name_rule= $request->getPost('name_rule');
$points_rule= $request->getPost('points_rule');
$status_insert=$accountModel->add_rule_insert(array(
"category_partner" => $category,
"description" => $description_rule,
"name_rule" => $name_rule,
"points" => $points_rule,
"active" => 1,
"fecha_registro" => $fechaActual,
"user_id" => $id_user
));
echo $status_insert;*/
}
Carlos Enrique Gil Gil
- 787
- 3
- 10
- 29