Questions tagged as 'codeigniter'

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

How to use data from a Codeigniter session

Hello, I have the following code where I log in and I save the data in Array . I want to know what is the way to get data in a view. function check_database($pwd){ $username = $this->input->post('username'); $result = $this...
asked by 05.06.2018 / 23:02
0
answers

Load models and drivers in an external file in CodeIgniter

Hello, I have a web application which I'm doing the api and I need to get the methods that are in CodeIgniter but I can not find the way to load everything done in CodeIgniter ... thanks a lot for your help     
asked by 03.08.2018 / 02:42
0
answers

Problem with JSON, Access and Special characters in CodeIgniter

I expose the environment first: 1 Database in msAccess 1 Web server with a REST API generated in codeIgniter, which returns a JSON with the contents of a query to the database Access. 1 Postman to check requests. When in one of the fi...
asked by 19.07.2018 / 10:06
2
answers

Restart counter to 1 in php

I have a question to see if someone can help me In what I am developing I need that on day 1 of each month for example the number of breakdowns starts with 1 and then of course I will add 1 consecutively. Already for day 2 is to get the last and...
asked by 24.07.2018 / 12:24
0
answers

React does not accept my post parameters

I have a problem I am working with codeigniter of the% backend and react % of the frontend . I am working with login, it is the first time I have to work with react, as it says in the documentation as I have done it, th...
asked by 18.07.2018 / 17:43
0
answers

Foreach does not record multivets

I'm using Codeigniter and I'm going through input[] , for this I have the button where I add the inputs function add_fields() { var d = document.getElementById("content"); d.innerHTML += "<br /> <i...
asked by 18.07.2018 / 22:34
0
answers

Pass attribute value to XML node from a foreach that receives data from a query in mysql

I am trying to traverse data in a foreach that takes the attributes and values of an array that comes from a query that returns a result_array (). The objective is to take the values of that array and add them as attributes with properties and v...
asked by 11.07.2018 / 21:32
0
answers

CodeIgniter, shows the first 10 elements, the rest do not come out, the last one is shown, using modal

I have a modal list and it only shows me the top 10 well, when I go to the next window it shows me anything of the last thing I touch but it does not show the real value that it can be. my list has 25 elements vista lista.php <div class=...
asked by 14.07.2018 / 23:43
2
answers

Is it correct to access a model from another model in CodeIgniter?

A few days ago some questions arose from a functionality that I had to implement.    Is it correct to invoke a model from another model?       Does my security affect anything?       Is it anti-functional? It worked perfectly for...
asked by 19.07.2018 / 17:05