Questions tagged as 'codeigniter'

1
answer

Codeigniter - passing array to controler

Good afternoon everyone, I have a problem with my code and would like some help in solving it. It works like this: I get a form 3 variables (event_id, user_quality and user_id - the latter comes from a multiple select with the name = user_id [])...
asked by 13.11.2017 / 21:33
1
answer

Edit status of multiple records with checkbox checked?

I need to send an array with the ids of the records that have the checkbox checked, to edit the status field at one time. Note1: All records will suffer the same change listed in a select. Note2: I can edit each record individually through a lin...
asked by 06.11.2017 / 13:50
1
answer

global $ var does not work in PHP

I have the following code: <?php $_this =& get_instance(); function ConfiguracoesSistema($coluna){ global $_this; $configuracoes = $_this->db->get('configuracao'); if($configuracoes->num_rows() > 0){...
asked by 12.11.2017 / 15:03
1
answer

Optimize Codeigniter code

I have a system to register debit trading. Suppose you register a negotiation with 3 installments. Being: Parcela || Valor || Vencimento || Situação 1 || 100,00 || 01/09/2017 || Pago 2 || 100,00 || 01/10/2017 || Pago 3 ||...
asked by 23.10.2017 / 21:22
1
answer

Error in Ajax request with CodeIgniter (url)

I have a very strange problem, if anyone can help, thank you right away. I'm developing an application in CodeIgniter 3.1.6 with PHP 7.1 and Bootstrap 4 . The home screen displays a list of students (obtained from a controller named...
asked by 19.10.2017 / 02:41
0
answers

Call to a member function method () on string

I'm using CodeIgniter and, when trying to do a search in my database to see if a given line actually exists, it displays the Call to a member function checarId() on string error. Here is the code for the functions that return this error:...
asked by 07.10.2017 / 21:26
1
answer

When invoking controller in codeigniter, it always seems to be passing through "Welcome"

I'm doing a simple PHP application with codeigniter, where I'm trying to access a controller, and apparently whenever I call that controller, it goes through the welcome example: localhost/estudando/Login/login generates the same result as:...
asked by 18.10.2017 / 19:53
0
answers

Group tables and return in json

I have this function that returns the data for Ajax: public function get_agenda(){ $this->db->select('prospect_agendamento.age_data_agendado_para as start, prospect.pro_nome as title, prospect.pro_id as id '); $this->db->wh...
asked by 18.10.2017 / 16:11
0
answers

Constant change of dates in CodeIgniter

I have a website developed in PHP and CodeIgniter, I have never worked with PHP or CodeIgniter, just with JavaScript. The problem is that the date of the site's ads is constantly updating, which was to be fixed, it changes almost every 15 day...
asked by 29.09.2017 / 11:20
1
answer

Control access to documents [duplicate]

I'm creating an application to manage files, the files are being saved in a local directory "localhost / uploads ...", I have a "documents" table with a "file-url" field, where I save the file path, too I have my user table, now I need to defi...
asked by 08.10.2017 / 16:27