Questions tagged as 'codeigniter'

1
answer

Routes - CodeIgniter

I wanted to know what this $ means in the definition of the routes, for example: route["(.*)-sid-(:num)-(:num)"] = "services/service/$2/$3"; What does $2 and $3 ?     
asked by 09.04.2015 / 16:41
1
answer

How to check if a session exists (CodeIgniter)

I have the following function in my Controller : private function SetImageAndColor($client_id) { if (isset($_GET['color']) AND isset($_GET['image'])) { $dados['click2call'][$client_id]['image'] = $this->input->get('imag...
asked by 20.03.2015 / 14:10
2
answers

Create a query within a function file in the libraries folder and not in the model as suggested

I need to check a certain type of permission that is in the permissions table in the MYSQL database. In this case, I will need to use a function that is inside the "libraries" folder in a file called "functions.php". The purpose of this funct...
asked by 24.12.2013 / 18:04
2
answers

Retrieve column from a join in view

I have a query with join and in both tables I have a column with the same name ds_observacao . The tables are: cliente and ordem_servico . When showing in view , the value of this column returns me blank. You are look...
asked by 03.02.2015 / 20:30
1
answer

Validation CSRF giving error after a time without use

I have an application already running with codeigniter and I have csrf enabled on the system. The problem is in a page that has a form that sends to itself, is a filter, but it is the following, the user does the post and has the results on the...
asked by 13.08.2014 / 15:07
1
answer

Error: "Call to undefined function mysqli_init"

I'm doing a test with the codeigniter framework 3.1.5 and trying to connect to the database it has the following error: Fatal error: Call to undefined function mysqli_init () The complete error description: Fatal error: Call to undef...
asked by 14.08.2017 / 13:06
1
answer

Open a view with Codeigniter on a different page

I would like to open a view on another browser tab using Codeigniter, does anyone know how to do it? In% w / o "a href" I use the tag property to achieve. How do I pass this property on target=_blank     
asked by 08.02.2017 / 16:14
1
answer

Calling a function in Views in codeigniter

I have this function in models : function sumContasReceber() { $this->db->select('lancamentos.*'); $this->db->from('lancamentos'); $somaCR = "SELECT SUM(valor) as SOMACR FROM lancamentos where baixado...
asked by 10.09.2016 / 23:03
1
answer

Where to put the Model code in php

I have some tables in my db between them are post_has_categoria post categoria In My Models I have the Category.php and the Contest.php where should sql be responsible for post_has_category?     
asked by 20.03.2017 / 05:10
1
answer

Codeigniter Session Error:

This system error appears in codeigniter. The errors pointed out by php: ini_set('session.use_trans_sid', 0); ini_set('session.use_cookies', 1); session_start(); Standard Driver       class Login extends CI_Controller {...
asked by 16.05.2016 / 19:05