Questions tagged as 'codeigniter'

1
answer

Wrong pagination in Codeigniter

I have 15 ADs on my site and I did the paging for 10 ADs per page. Ok, CodeIgniter is doing paging with 10 ADs / Page, but on the second and last page CodeIgniter is showing 10, when it should only show 5. This is the Controller code: function...
asked by 30.03.2015 / 19:12
2
answers

Foreach with database records

In my database I have a table called cadastroatendo within this table I put the days of service. I'm retrieving the data through foreach ... which in turn array returns this result: [listaAtendo] => Array ( [0]...
asked by 10.07.2015 / 21:49
2
answers

Return ajax data with php

I am creating a modal in ajax where it will return the id and list the information in the modal the problem is that the php returns the "whole page" for ajax and gives me no error in the console, I already tried to use firebug <script>...
asked by 08.06.2015 / 19:59
2
answers

Codeigniter - Query in DB

Good evening! I need to return the value of a table in codeigniter but it is acknowledging the error below:    A PHP Error was encountered       Severity: Notice       Message: Undefined variable: name       Filename: paneladmin / categ...
asked by 05.08.2014 / 05:50
2
answers

Routing Codeigniter

I am making a site with administrative area using the Framework Codeigniter. In the administrative area, the user can create new pages for the site. The content of the page will be saved to the database. The controller that reads the pages of...
asked by 10.11.2014 / 17:01
3
answers

Select records from a table where the record of a related table is a specific value

I have a table of technical calls and a table of calls. Each 'CALL' has several 'CALLS' and it is in the calls that the field defines the status of the call (Open, Closed, In Progress, Suspended, etc ...) Currently, when I need to list only op...
asked by 24.03.2014 / 15:42
1
answer

Log out when browser close or session ends [duplicate]

I'm developing a system that stores in the database when user logs in and out. However, the logout function is only called when the user clicks exit. I would like to know if you can call the logout function when the browser closes or the se...
asked by 16.10.2018 / 21:00
1
answer

Date type field in Codegniter form

I'm developing a form with date field. How do I use the present form resource of Codeigniter for a date field? In the example below I'm using text area. Is there a form_ function for dates? echo " <div class='form-group'> ";...
asked by 20.06.2014 / 05:07
1
answer

Access denied access controller with CodeIgniter

I made an application with code igniter and implemented a login screen. When logged in, the user is directed to the dashboard screen. When you click on any link on this screen, the message "Forbidden access" is displayed: Imadeachecktounders...
asked by 11.01.2018 / 19:25
1
answer

Codeigniter - Retrieve ID

I need to retrieve the last ID inserted into a table and pass this ID to the field of another function. Is it possible to recover in this way? $negociacao = array( 'id' => $neg->id, 'dt_negociacao' =>...
asked by 08.11.2017 / 13:41