Questions tagged as 'codeigniter'

1
answer

Undefined variable when sending data from the controller to the view

I'm doing a small practice project where I take out information from the database and show it in a view as a "profile" type. At the moment of showing it, I get an indefinite variable error, but that variable is already brought in the query...
asked by 16.11.2017 / 07:11
1
answer

Codeigniter REST API does not answer

Good afternoon! I am making an application that uses an api rest system with Codeigniter REST API. I created the user registration function, and doing tests with postman, all perfect, you can register well and it does not give problems. This api...
asked by 20.08.2017 / 14:36
1
answer

Insert form in template AdminLTE-2.3.11 and codeigniter 3

I am new learning CI, I am trying to integrate a form to the AdminLTE template right in the content part: <section class="content"> <?= $this->load->view('registrarCatalogacion');?> </section> <!-- /.content -->...
asked by 15.08.2017 / 11:59
2
answers

registration with optional fields codeigniter

name surname *user *password * email I have a record with optional fields, but when I insert an insert into the database it gives me an error because I'm doing an insert of the type: INSERT INTO 'usuario'('nombre', 'apellido', 'usuario', 'c...
asked by 10.08.2017 / 16:03
1
answer

Do a between of 2 columns codeigniter

Normally I have made a between on a same column example: $Where['autos.precio>='] = 200; $Where['autos.precio<='] = 300; $this->MainModel->listar('autos',$Where,''); That would bring me all the cars in a price range of 200-30...
asked by 10.08.2017 / 18:23
1
answer

Error executing two procedures in Codeigniter

The problem is that in a controller I try to execute the two procedures I skip this error:    A Database Occurred Error       Error Number: 2014       Commands out of sync: you can not run this command now       CALL charges ();       F...
asked by 10.08.2017 / 04:21
1
answer

I have a problem with Fullcalendar and the INNER JOIN framework Codeigniter

Already update my publication, I already recognize the id of the project and I do the JOIN well, in an alert you can see the result of the query, I already painted the calendar but as if it were empty. The phases do not place them. What I int...
asked by 31.07.2017 / 17:59
1
answer

Retrieve values from my table?

I want to save in a variable the data of my table for example my json brings me 2 fields, name and date. And I want the first name data to save it in a variable: example:  var nom = 'the first name record';  var fech = 'the first date re...
asked by 26.07.2017 / 22:34
1
answer

Update table (bootstrap-table) automatically when passing parameters of two input?

How can I make my table update automatically taking the value of two input in JS , I use JSON , and can pass the parameters to the query the problem is that my table is not updated. This is some code I use, researching I fo...
asked by 14.07.2017 / 20:09