Questions tagged as 'codeigniter'

2
answers

Remove double quotation marks in codeigniter query builder

I'm using the Codeigniter framework and every time I create a select with query builder of them, it puts double quotes in all columns and tables. Ex: SELECT "ID", "NAME" FROM "STUDENT" This gives me a problem because I use 2 connections to...
asked by 06.06.2017 / 14:04
1
answer

Playing parameter in url

I have a Project in Codeigniter that will be in two languages, however I need to allow this language change only in the project URL; In other words, when accessing the domain.com it should maintain as a base url / pt on all pages and consecut...
asked by 18.04.2017 / 13:34
1
answer

fill in datatime field

I'm trying to fill in the input datetime-local but the field is blank, I already tried to send it in the format American and Brazilian but it does not come at all. in the database is stored in the American format: 2017-02-20 1...
asked by 25.03.2017 / 23:42
1
answer

View events fullcalendar codeigniter

Hello! I want to retrieve the events from the database and display them in the calendar. Can you help me do that? So far, I have the following codes: Model: Public function obter_noticias() { $sql = "SELECT * FROM noticias WHERE noticias.id...
asked by 11.01.2017 / 17:18
2
answers

If does not compare Char

I created in the codeigniter a helper for the datatable that would return an html with a bootstrap icon. Follow the function: function trata_check($valor) { $ci= & get_instance(); if($valor=='S'){ $html='<spa...
asked by 03.04.2017 / 02:34
2
answers

Controlling PHP sessions with Codeigniter

Good morning, I'm new to programming with PHP and I have a question: I've already developed the login system and it's working properly, now I'd like to control access to the other pages of the application, access internal pages if you are...
asked by 26.01.2017 / 14:50
1
answer

Passing correct parameters on Form submit

Hello, I'm trying to pass some parameters to the controller, but I'm not getting it. The following code has been changed to load the contents of the clicked tab and display it in an input and texarea. And it's working and loading correc...
asked by 16.12.2016 / 13:45
1
answer

Angular Leaflet map error

I'm using Angular in a project with Codeigniter and I'm applying the Leaflet map. Creating the function, it generates the map, but it informs error when obtaining the center property and does not load in the defined position of initialization, i...
asked by 16.02.2017 / 13:28
1
answer

How to modify this query to get the desired result in Codeigniter?

I have a SQL that returns me the following:    1: Hacker And Cars       OU       2: Food I need to get it back:    1: Hacker       E       2: Automotive OR Food The code I have so far is: if(!$final['termo'] == null)...
asked by 19.11.2016 / 15:58
1
answer

Problems in a Select CodeIgniter + PHP

Hello, I have the following case, I have a donor who wants to make a donation at a hemocenter, he does the search for this hemocenter and clicks a button I want to donate here. This will create a table in the database called donation_marked, wi...
asked by 03.11.2016 / 11:50