Questions tagged as 'codeigniter'

1
answer

How to save my queries (sql strings) to the log file in Codeigniter?

My problem is as follows, how to register the queries (the generated sql string) in my log file. I know there is a function for this, but I do not want to have to call this guy in all my methods in my Model. My question is, how could I solve...
asked by 02.06.2016 / 16:45
1
answer

Send array to Controller and insert into DB, with Ajax and Codeigniter

Hello, I'm not able to receive (in the controller) the array that is sent from a View via ajax. I already tested it in console.log and the array is sent but nothing happens in the controller. The input, "numdiags" defines the number of inp...
asked by 13.06.2016 / 10:58
1
answer

Back 2 pages with php / create session of last accessed URL

I would like to know how to create a session of the last url accessed, why this: I have a login system on the site that if the person clicks buy in the product and is not logged in, it is directed to the login page, after login, it is redirected...
asked by 07.03.2016 / 13:28
1
answer

Verify that email already exists with codeigniter

I want to check if an email already exists in the database. I'm doing the following. $this->load->database(); $query = $this->db->get_where('usuario', array('email')); $result = $query->result_array(); if(count...
asked by 30.06.2016 / 14:22
1
answer

Save visitors email (Newsletter) with codeigniter

Good morning, I'm a beginner in PHP and codeigniter. I need a light, until I found what I need but not in codeigniter (because my site is in mvc). This was found and worked on my localhost link , but I have no way to use it after all it does...
asked by 27.06.2016 / 15:01
2
answers

warning for in_array coming empty

I have a code that to generate a PDF it checks what is marked in the checkbox. But if I do not mark anything, it still opens the PDF, only with the blank sheet. You can do a if that if nothing has been marked, display an alert on the sc...
asked by 28.10.2015 / 12:00
2
answers

How to pass variables coming from post, save them until the last step and show all values

I have a form that is divided into 10 parts, that is, I'm going to save via post the variables from page to page. However, if you refresh the page all previous variables are lost. How can I solve the problem? Outline: Phase 1 - phase1_v...
asked by 30.09.2015 / 11:17
1
answer

How to add groups of inputs according to the number inserted in a text box without refresh

How can I make a form that has a box of text type number, and according to the number that I enter appears groups of text box to fill in that form? Example: Text box (number of days) = 4 <div> <input type="date" name="data[]">...
asked by 03.12.2015 / 17:07
1
answer

Redirection Codeigniter

I have developed an application in Codeigniter 3 in the company where I work and need to replace an old one. The situation is that the url address will be changed but we can not deactivate the previous one, the redirection of those who enter t...
asked by 24.08.2015 / 14:37
2
answers

Error message when placing translation in CodeIgniter

Does anyone know how to solve this:   An Error Was Encountered: Unable to load the requested language file: language / english-brazilian / form_validation_lang.php I followed the following steps to include the translation: applica...
asked by 21.08.2015 / 22:33