Questions tagged as 'codeigniter'

2
answers

Check ajax return, it works only the first time

Good morning friends, I have this code: $(document).ready(function(){ $('button').on('click',function(e){ e.preventDefault(); var codigo = $(this).attr('id'); $.ajax({ type: 'post',...
asked by 27.10.2017 / 13:49
1
answer

Error in a Codeigniter library

I have the following library in codeigniter: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Breadcrumb { private $breadcrumbs = array(); private $separator = ' > '; private $start = '<div id="bread...
asked by 16.10.2017 / 14:32
1
answer

Error codeigniter in Azure: does not access subfolders

Ihaveanazurehostede-commercesystem( link ) Developed in Framework CodeIgniter 1.7.2 The system is loaded in the index. However, I can not load the other url that are in the subfolders: Contact, Adm, Cart .... My .htaccess: <IfModule m...
asked by 04.09.2017 / 20:16
1
answer

Call Procedure with Oracle return in Codeigniter

I'm developing a system and in a part of the code, I need to call a procedure and it returns a value. How can I do this? For the time being I did it and it did not work: $sql = "CALL P_VERIFICA_VALORES(" . $this->_databas...
asked by 19.09.2017 / 22:28
1
answer

Send headers in HTTP Request with cURL in PHP

Hello, I made a function to make cURL calls to an API and I am able to make the calls but I am not able to send headers. Function: function curlRequest($endpoint, $verb, $headers, $params = null) { try { //Inicia o cURL...
asked by 20.09.2017 / 15:50
2
answers

Create object and send by ajax - Codeigniter

Hello, Can you help me create an object with this code and send it via ajax. console.log("cadastro-assessoria trabalhando"); //Variáveis $(document).ready(function() { $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {...
asked by 23.08.2017 / 18:41
1
answer

Insert_batch or update_batch - CodeIgniter

Hello! Can you help me with an insert_batch or update_batch. Through the code below I need to insert, update, or delete an item from the database. The way it is I am able to insert, but my problem is when I will update, because when it is...
asked by 30.08.2017 / 18:21
1
answer

Datatables bringing all data at once

I'm having a bizarre problem getting my hair ripped, I know I'm creating a valid json via server side, even using a json validator. the format of my json is this way: [ { "name": "jhon doe", "age": "22", "eye": "brown" }, { "nam...
asked by 22.06.2017 / 17:59
1
answer

Name of Columns in uppercase with Codeigniter and PostgreeSQL

I am developing a WEB system using Codeigniter with support for Oracle database and PostgreSQL. In my queries, I use Codeigniter's own Query Builder. Simple Select example: SELECT "ID", "NOME" FROM "USUARIO" However, this sele...
asked by 07.06.2017 / 16:33
1
answer

Doubts on how to make inheritance with PHP using Framework CodeIgniter

I'm having doubts about using inheritance with PHP using the frame CodeIgniter. I need to create an abstract class? How do I search for a field that is in a certain class? Ex: The Product Class has the fields:  - name  - preco_ven...
asked by 19.05.2017 / 19:39