Questions tagged as 'codeigniter'

1
answer

Error limit Codeigniter

Hello everyone, Codeigniter Brasil, I have a query that returns everything perfect on localhost but the server does not return the way it was written. It is to return 6 results but on the server it returns the amount that it finds best up to...
asked by 28.12.2016 / 18:20
2
answers

Codeigniter; Calendaring Class: highlight the current month in an annual calendar

I made a method that writes a VIEW with a calendar table that shows all the months of a year using the library Calendaring Class . It works fine, and returns this: Code:<?phpclassCalendarextendsCI_Controller{publicfunctionthis_year(){$da...
asked by 26.11.2016 / 05:17
1
answer

Organization of the code in the controller codeigniter

I am using the HTML Table Class and the table settings are defined through an array according to codeigniter's own documentation link I've created a method that only returns this array of configuration to improve the visualization of the co...
asked by 04.11.2016 / 17:00
1
answer

UPDATE in another table when updating a record does not work - CODEIGNITER - MYSQL

Hello, the code for updating a record in another table does not work. I need to update the vendas table when saving a record of the lancamentos table. In the lancamentos table there is the vendas_id column, which c...
asked by 04.11.2016 / 16:14
1
answer

Error redirecting internal pages with codeigniter

Good evening. My question is the following, I have a menu and in it several options I created a VIEW called queryProducts and I would like that when clicking on query the same was for this screen, but this does not happen, like redirecting pages...
asked by 24.10.2016 / 02:57
1
answer

Pagination - Codeigniter

Hello, I have a problem paging, the pagination links are displayed normally, but regardless of the page I go to, the results are always the same, ie it does not change. Below is the Controller function public function index() { if...
asked by 10.11.2016 / 11:55
1
answer

jQuery function stops working after Ajax search

I made a system in Codeigniter that does real-time search. In my search, I send the parameters via Ajax to the controller and I make the query. I put all HTML for a view. Then I get all the HTML of that view through ajax and feed my page repl...
asked by 19.11.2016 / 20:30
1
answer

Catch data from a select and declare variable

Alright? I am very new to programming and I have a simple question that I did not find here in the forum. I have this code below the view (made in codeigniter): <div class="span6"> <label for="formaPgto">Forma Pgto</label&...
asked by 31.08.2016 / 14:47
1
answer

Validating form with jQuery and sending to a controller in codeigniter

I want to do a validation with jQuery before sending the data to the server side, I'm using PHP with jQuery and in the form part I use this: < ? php echo form_open('empresa/inserir', 'id="form-empresa"'); ?> < inputs ... &...
asked by 23.08.2016 / 14:59
1
answer

Paging in Codeigniter with error Type: Error Message: Unsupported operand types

I have a function that takes all the values from the database and sends them to a view , so I'm doing a pagination. Only when I put the $this->pagination->create_links() of variable array it gives an error: Where the error...
asked by 16.10.2016 / 06:01