Questions tagged as 'codeigniter-3'

1
answer

how do I keep a selected option after sending a form with plugin select2

I have the following code, I am trying to build an excel-like filter with the select2. well the filter works and it makes the consultations, but I would like to leave or remember the selected options, since if I make a query and then another ......
asked by 28.07.2018 / 02:34
1
answer

Fill table with Ajax

I am presented with the following problem. I have a table in a View called all_calls_view.php which is called by the following controller reg_calls_controller.php and the function all_calls_view . As you can see when you send the call th...
asked by 25.07.2018 / 20:07
1
answer

How to configure codeigniter for styles and images?

good day, I would like to know if someone can tell me how to configure the codeigniter so that it can be seen in an internal network and also know if it is with the same configuration or with another to put the page in a hosting. for the css...
asked by 18.07.2018 / 20:04
0
answers

Have each button call a different controller and send them the input data

Hi, I have a problem How to make each button enter a different controller but also give you the data I have in my input This is my form <form action="#" id="form"> <div class="col-sm-12">...
asked by 10.07.2018 / 17:55
0
answers

Send two dates as a parameter from javascript ajax

I have the following button which sends to a JS function and enters correctly <button class="btn btn-primary" onclick="filtrar()"><i class="fa fa-filter"></i> Filtrar</button> This is my JS function...
asked by 09.07.2018 / 21:56
1
answer

Receive data sent by AJAX to Controller

Hello good afternoon, I have a problem getting data sent by AJAX to a Controller Data sent by AJAX var txtDateInicio = document.getElementById('date_inicio').value; var txtDateFin = document.getElementById('date_fin').value; var parametros...
asked by 09.07.2018 / 23:59
0
answers

Know if a data has dependency without deleting it posgresql codeigniter PHP

I would like to know if there is a way to know if one data has dependence on another without deleting it. I explain if we use delete from and this data has dependency, it does not allow us to delete. but I need to use a logical deletion 1-...
asked by 26.06.2018 / 23:01
1
answer

Find equal values in two PHP arrays

I'm working on CodeIgniter I'm calling two result() and I want to buy the data in the view. Model public function getallData() { $this->db->order_by('id', 'desc'); $query = $this->db->get('Data'); if ($query...
asked by 12.06.2018 / 23:51
0
answers

List in Datatable.js 12k of rows

I am working with php and mysql with the Codeigniter framework and I am loading 12 thousand records of products using Datatable.js, the problem is that when the page is displayed, 12 thousand records are loaded and after about 20 seconds accommo...
asked by 05.06.2018 / 22:50
0
answers

Error Connection Postgres Codeigniter

I am creating a new connection to connect to a server with codeigniter. here database.php $db['newdb'] = array( 'dsn' => 'pgsql:host=192.xxx.x.xxx;port=5432;dbname=namedb', 'hostname' => 'localhost', 'username' => 'user'...
asked by 21.06.2018 / 21:45