Questions tagged as 'codeigniter'

2
answers

Error Calling a member function row () on a non-object Codeigniter

Password change screen, form is ok, but the variable to fetch the information in the bd giving error, in the row () function! Follow VIEW: case 'alterar_senha': $iduser= $this->uri->segment(3); if($iduser=NULL):...
asked by 05.11.2015 / 12:45
1
answer

CI3 No Load the model on the umbler server

I'm doing a test on umbler services, but I'm having trouble loading the model. I am using ci3 and am loading the models as usual. $this->load->model('main_model'); More is giving an error An uncaught Exception was encountered Ty...
asked by 07.09.2015 / 16:45
0
answers

bring data from the bank according to other data

I have a code that brings the database data and generates a table. This data is coming all that are registered, but I need only the data with the same user state to come. For example: I have a user from Santa Catarina, I need the data to co...
asked by 09.11.2015 / 12:42
1
answer

Filter records by Month / Year Codeigniter

I have the following SQL structure: CREATE TABLE IF NOT EXISTS 'noticia' ( 'id' int(11) NOT NULL AUTO_INCREMENT, 'id_categoria' int(11) DEFAULT NULL, 'titulo' varchar(255) NOT NULL, 'previa' text NOT NULL, 'descricao' text, 'imagem...
asked by 02.11.2015 / 15:47
1
answer

How to do pagination in CodeIgniter using AJAX?

I'm having a hard time finding a way to do paging using AJAX. I am accustomed to doing it both traditionally and directly with the server using Codeigniter as the application framework . However, this time I need it done without the refresh o...
asked by 24.12.2013 / 12:03
1
answer

CodeIgniter session expires fast

I made a control panel for a client and in that panel my client can edit the products of the site. After the client Edit a product and click Save , when the client will try to edit more fields the system redirects to the login page, ie, the s...
asked by 23.10.2015 / 19:08
0
answers

How to insert data into two different tables with the same form?

I have a dynamic form in which the questions come from a database table, some questions have multiple choice answers that also come from the database. but other questions are text. When submitting, I needed the multiple choice response to go to...
asked by 23.10.2015 / 12:49
0
answers

Take characters out of id

I have a code that when you click the button to disable photo it makes disappear the button that is on the side. In order to make this function work, I had to pass a few characters in the id before, it looks like this: <a href="javascript:v...
asked by 03.09.2015 / 16:25
0
answers

Routine to validate if date is earlier than today if it is to change the state of the field to complete

I need to do a routine that checks if the end date of a certain event has already passed, ie if the date of the "end" field is less than today's date, it updates the "status" field to "finished". I'm working with codeigniter 3.0 The...
asked by 29.07.2015 / 18:41
1
answer

Data returning with space

I am making a ajax call with jQuery on a controller in CodeIgniter . The problem is that when jQuery returns me the data, it is coming with some spaces in front of the result, being for example: (ESPAÇO) (ESPAÇO) (ESPAÇO)...
asked by 01.08.2015 / 23:57