Questions tagged as 'codeigniter'

3
answers

limit in codeigniter

I have a code that takes the data from the database and shows it in a table. I need only the first two records to appear. For this I put a limit on my code. But it is not limiting, but taking the total and decreasing by the number. EX: $th...
asked by 21.07.2015 / 15:04
1
answer

Add data by Codeigniter with Ajax

I'm new to MVC development and so far I'm having trouble identifying the error when trying to save my form records. Gives the error message: 403 (Forbidden). I'm using Codeigniter. My role: $(document).ready(function () { $('#btn-save')...
asked by 22.05.2015 / 06:53
0
answers

Freight Table Calculation

I have the following freight table Ihavethefollowingneighborhoodtable Where in the table, select > idSaida = 1 = Center and idDestino = 2 = Abranches In this case a product will be collected at the Center and delivered to Abranches. Thi...
asked by 19.06.2015 / 04:44
0
answers

Run controller from an external site

I have the following problem / question: I have Wordpress installed and CodeIgniter also. In CodeIgniter I have to do a function that adds +1 in the database when a category is seen in wordpress . Then the following code...
asked by 03.06.2015 / 07:45
1
answer

Libraryign of Codeigniter 3.0

I made a function to log off the system, however, when I use the sess_destroy() function to destroy the session, it does not allow the set_flashdata() to be displayed. When I remove the function sess_destroy() the set_fla...
asked by 30.05.2015 / 00:36
1
answer

MySQL insertion problem with Multi upload

I have a system that performs multi-upload of files, I am using the Codeigniter framework that extends the Class Upload of the CI. The files are being moved correctly to the desired folder, however, in the database insert only one registe...
asked by 04.03.2015 / 00:22
1
answer

How to add #ancora at the end of the URL (with pagination codeigniter)

How do I add the anchor id at the end of the url? At this moment my url is as follows: link I needed it to be as follows: link I have the following controller: . . . $ urlPaginacao = site_url (); //PAGINAÇÃO ***** $g...
asked by 09.10.2015 / 13:35
1
answer

Codeigniter config set_item

I use Codeigniter, and I've done a custom% with% and now I can not set the value for it. Actually I can, but the value is only for config current. If I switch to another and pull that Controller , the value is zeroed again. Is that...
asked by 09.10.2015 / 03:52
1
answer

Cronjob does not recognize the CodeIginiter controller

I'm trying to make a cronjob run in the CI, but I'm not getting it, this error appears:    Fatal error : Class 'CI_Controller' not found in /MeuCaminho/application/controllers/cron.php on line 4 > PHP <?php class Cron extends...
asked by 14.04.2015 / 23:23
0
answers

Problem with CodeIgniter session

When I authenticate the user in my application, I save some information from this user in sessions. This is done in the Controller User , but when I retrieve this data in another Controller, they do not exist. When I did a test, I printed all t...
asked by 06.03.2015 / 15:33