Questions tagged as 'codeigniter'

1
answer

adding the foreach field of the controller to the view

Hello! I have the following controller function. public function lancamento_listar() { $lista = $this->lancamento->obter_dados(); $data = array(); $no = $_POST['start']; foreach ($lista as $lancamento) { $no++;...
asked by 06.06.2017 / 18:53
1
answer

php error at the time of hosting

I have a problem at the time of hosting a college job, the problem is this one: Onthelocalhostthiserrordoesnotappear. Theerrormentionedinline98ofthethemecode/topisthis<?phpif($this->session->flashdata('success')!=null){?><divclas...
asked by 21.05.2017 / 14:39
1
answer

Multiple automatic wheres

I was seeing in CodeIgniter that there is a way to insert multiple 'where' into class DB : Example: $this->db->where('id', 1) ->where('name', 'Jão') ->where('lastname', 'Fulaninho') ->get('users')...
asked by 30.03.2017 / 17:14
2
answers

How to know if user is logged in with ion-auth 2

I want to restrict access to my login system, to only 1 for each login, I want my system to block access if the login is already being used on another device. What would be the best practice to do this? I am using Codeigniter 3, along with...
asked by 27.03.2017 / 19:35
2
answers

Error in the codeigniter's querier builder

I have a SQL problem in my query, it follows: $sql = "SELECT cl.codigo, pa.codigo AS codigo_participante, pa.nome AS nome_participante, cl.usuario, cr.data AS data...
asked by 13.03.2017 / 23:32
2
answers

How to create and access a global variable with PHP and codeigniter

Good morning, I'm having a question, I'm using the following to generate success alerts or errors on my system. if ($this->model->inserir($data)) { $msg = "<div class='alert alert-success'> Cliente salvo com sucesso</div>...
asked by 08.02.2017 / 13:33
1
answer

Search field / data filter

Hello, I'm developing a data search field. And this one, is working very well until then; but I would like to add some query parameters to this field. How are you today (search possibilities): Data inicial Data final Nome. How do...
asked by 05.01.2017 / 20:39
2
answers

Repeat data from a row in the table via modal

I get the site contact form the data and ready them on a backend system. Currently all of them are displayed online ( nome , assunto , e-mail , telefone , id , ação[excluir] ), I would like to see only the...
asked by 09.01.2017 / 14:22
1
answer

default MVC for Controller in codeigniter

I have the following scenario, some models that will be accessed via administration (site) and via client (app), in administration it can read and write data and in the client only read data. My question, what is the best way to follow the MVC...
asked by 21.03.2017 / 01:00
1
answer

CodeIgniter update works but wrong list

I'm having a problem updating a bank record by codeigniter, I have two tables, one call: Employee (where employees are stored in the company and in which sector that employee works, this table has the foreign key of the sector table (sector_...
asked by 20.03.2017 / 03:38