Questions tagged as 'codeigniter'

1
answer

How to make the view that I am loading in the controller run

I have this function in my view $.ajax({<br> type: "POST", url: url, <br> data: {id: id}, }) Where url contains an address to the controlled I am using Codeigniter now in the controller...
asked by 04.11.2016 / 21:09
3
answers

Error CORS jquery, codeigniter, apache

Hi, I have a simple application crud in codeigniter and sql server 2000, in which all queries to the database are made through jquery ajax. I developed it on my local PC windows 8 with xampp, and everything works fine, until I wanted to upload m...
asked by 18.10.2016 / 14:00
1
answer

Problem with CLI in CodeIgniter

I'm trying to run CLI by following the documentation but it throws me errors and there's no way. I am located in the main root of my project, one empty with a couple of methods in welcome.php and connection to a database. The minim...
asked by 19.10.2016 / 09:59
1
answer

textbox visible depending on the value of a drop-down list

Hello how are the problems I have is how to make a texbox visible depending on the value of a drop-down list, I attach the vision code <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> <!DOCTYPE html> <...
asked by 23.08.2016 / 00:06
1
answer

INSERT IN TABLES RELATED TO INPUTS AND SELECTS

Hello the problem I have is that I can not insert data in a related table I'm using combos and input I'm taking into account that the combos are loaded by database Here is my model model users <?php defined('BASEPATH') OR exit('No dire...
asked by 18.08.2016 / 22:39
2
answers

Send ID by GET

I am currently working with codeigniter and I am passing a parameter as follows: <p><a href="<?= base_url()?>session/documentos/<?= $id_cur_ses ?>"><strong>DOCUMENTOS</strong></a><br>...
asked by 01.08.2016 / 17:28
1
answer

How to use the values of an array obtained from a MySQL query to perform another MySQL query?

I am using CodeIgniter and I am trying to do it in the following way: $query = $this->db->query("SELECT Tabla1.id From Tabla1 INNER JOIN Tabla2 ON Tabla1.id = Tabla2.id");...
asked by 09.08.2016 / 15:21
1
answer

Roles, levels or user privileges Codeigniter

I have a question about the roles or user privileges in Codeigniter, I have a page where I can change the role of each user if he is an administrator or limited user, what I can not do is that when I log in, load his profile if you are an admini...
asked by 25.05.2017 / 16:23
2
answers

How do I code a string in json with php?

hi all I need is to encode a string that is in json format in python is something like this: def queue(self, url, api_user, api_pass, api_version): args = urllib.urlencode({'cmd': 'api_queue_sms', 'username': api_user, 'password': api_p...
asked by 03.04.2017 / 17:47
1
answer

CodeIgniter, call a function from one controller to another [closed]

Greetings from me, I have a question with CodeIgniter, and it is as follows: It turns out that I am doing a small system of fines for vehicles, something simple to understand the nature of the framework, where I have 2 tables in a database, (...
asked by 02.05.2016 / 21:25