Questions tagged as 'codeigniter'

1
answer

SELECT DYNAMIC CODEIGNITER - AJAX

Hello! I have the following tables: tbl_encargo tbl_category tbl_encargo Since in tbl_lacamento there is a field ( id_categoria ) that receives the ids of tbl_categoria and tbl_categoria receives its id (...
asked by 19.06.2017 / 23:04
1
answer

Helper- menu and active submenu (codeigniter)

Hello! I'm using the helper menu to include class active in the site menus. Helper Menu: <?php defined('BASEPATH') OR exit('No direct script access allowed'); if(!function_exists('active_link')) { function men...
asked by 20.06.2017 / 23:09
1
answer

How to pass a controller variable to view?

I need to pass the multiple $ limit to my view and display it there, how could I do that? public function index() { // .... $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links()...
asked by 24.01.2017 / 22:02
1
answer

List data in separate columns

I have the following list coming from the database <ul class="list-marked"> <?php foreach($cidades_presentes as $valor){ ?> <li><a href="#"><?php echo $valor->categoria; ?></a></li> <...
asked by 14.12.2016 / 22:39
1
answer

Php session is broken when at two sites on the same apache server

I have two sites that perform user authentication and soon after creating a session for it, both sites access the same database and therefore the user structure returned by the statement: $usuario = $this->db->get('usuarios').result();...
asked by 01.11.2016 / 17:56
1
answer

Session is destroyed after redirect in Codeigniter 3

Developing a login system, I wrote the following script in the controller: $usuario = $this->input->post('usuario'); $senha = $this->input->post('uenha'); $q = $this->login->logar($usuario, $senha); if (!$q):...
asked by 14.10.2016 / 16:15
1
answer

Error "1052 Column in where clause is ambiguous"?

I'm having trouble making a system. I'm doing a join and the following error appears:    Error Number: 1052 Column 'donor_id' in where clause is ambiguous   SELECT * FROM doacao JOIN doador ON doacao . id_doador =  ...
asked by 07.10.2016 / 01:34
1
answer

Route results in 404 Not Found

I was following the CodeIgniter startup tutorial when I came across a problem with routes. The route file has the following routes: $route['404_override'] = ''; $route['translate_uri_dashes'] = FALSE; $route['news/create'] = 'news/create';...
asked by 23.07.2016 / 04:05
1
answer

How to properly insert a Bootstrap navbar in the Codeigniter view?

I'm learning Codeigniter and would like to know what or correct ways to insert a navbar in my view taking into account that it will be inserted by all the views in the system. My question is what directory to write the navbar and how to c...
asked by 22.06.2016 / 16:53
1
answer

Codeigniter - I can not print select values in view

Well, I'm trying to make a page that shows the user's data that is logged in. Model: function getAllDisplayable3() { $username = $this->session->userdata('username'); $this->db->select('id_login, nome, username, passw...
asked by 07.06.2016 / 12:53