Questions tagged as 'codeigniter'

1
answer

Send POST with Ajax and CodeIgniter

For almost 1 day I am facing a problem which until now can only be solved (making sure I was right) doing wrong, ie gambiarras. I'm trying to create Transparent PagSeguro Checkout but I can not send POST with the Credit Card token and Sender...
asked by 11.10.2015 / 03:31
1
answer

How to do is_unique of two fields?

I have a need that I do not know how to accomplish. Well, my problem: I have a is_unique field that refers to two fields in my DB, IDENTIFIER, and PLANT. Would you like to know how to perform this validation? For a single field I use...
asked by 10.07.2015 / 13:42
1
answer

Where in datatables with codeigniter

I have a code that draws a table according to the data in the database. EX: if she has a registered client she will make the table with only one row, if it has no one registered, no table will appear. In that code too, I have a filter (tabletool...
asked by 18.08.2015 / 14:36
2
answers

CodeIgniter .htaccess remove index.php

Starting to work with CodeIgniter and want to remove index.php from URLS: example.com/index.php/news/article/my_article The problem is that I have the file .htaccess in 3 different places: It is in the application...
asked by 16.08.2015 / 12:10
1
answer

How to return an integer value referring to the rows in the codeiginter?

How do I return an integer value for the rows returned in the select? $query = $this->db->where("categoria_titulo", $categoria); $query = $this->db->get("categorias"); $query = $query->num_rows(); echo $query;     
asked by 10.08.2015 / 23:23
1
answer

How to fetch values from just the selected checkboxes in codeigniter

I have dynamic checkboxes, and wanted to fetch the values from those that were selected, like doing this with codigniter: Model to go the fields and create the necessary checkboxes: public function apoioPertendido(){ $query = $thi...
asked by 05.06.2015 / 18:28
1
answer

Using sessions in configuration file in CodeIgniter

In my project, I need to do some tasks, which depend on information that is in the database. I store this information in sessions, to use throughout my project. One of these tasks is to connect to several databases, and the information from t...
asked by 04.03.2015 / 13:13
1
answer

Error migrating from localhost to online server [duplicate]

When migrating an application in codeigniter from localhost to the server it appears me the following error    PHP Error was encountered Severity: Warning Message:   session_start (): Can not send session cookie - headers already sent by   ...
asked by 01.12.2015 / 21:12
1
answer

Site_url does not work on CodeIgniter

I'm following a CodeIgniter tutorial. This code snippet is not working on my machine, I've set everything up right until the other tutorials have worked, but this code snippet is not working: <a href="<?php echo site_url()?>sobre">...
asked by 18.07.2015 / 02:44
1
answer

Session error in user-level validation

Well, I'm doing a simple dashboard with user level where I move to the session with an array of three values, so that's fine, the functions that validate the form, validate the user of the database, if the user is logged in or not, function that...
asked by 27.02.2015 / 19:23