Questions tagged as 'codeigniter'

2
answers

Adding inputs in jquery, but not deleting the ones that already exist

I am currently having the following code in jquery to add inputs according to the number in a text box, However if the form already exists for some field when clicking to add another one is deleted all fields and their content and inserted ne...
asked by 09.12.2015 / 13:23
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
2
answers

Check if the login exists in jQuery before sending the form

I need to develop a system in which when filling in the client's registry, be checked if the registered email already exists in the database, and if it already exists, that inform the user (via Ajax) that it already has this and -mail, and other...
asked by 25.07.2015 / 04:22
2
answers

Passage of variables to the view in CodeIgniter

I'm finding some problems to pass the result of a query in the model to the view in CodeIgniter. What would be the best way to do this? My query: $query = $this->db->query("SELECT * FROM crm.usuario limit 50"); And I want to m...
asked by 19.03.2015 / 17:52
2
answers

Make a condition to check URL

Hello, I'm using CodeIgniter to develop my website, I'm trying to check which driver the user is browsing, for example, I have the login and registration area, if the user is browsing the page login I want you to show the registration button, a...
asked by 18.02.2016 / 23:41
1
answer

How to pass an array in a WHERE condition

$this->db->set('al_reg', $matricula); $this->db->set('dataagendamento', $dataagendamento); $this->db->where('cod_lab', $laboratorio); $this->db->where('cod_horario', $horario_prova); $this->db->where('cod_data', $dat...
asked by 18.10.2016 / 15:31
1
answer

Where is the error that I can not see?

What happens in jeans_status and jeans_opcao it works a beauty more in the first if does not work, it enters if without checking whether imagem_status == 1 and imagem_opcao == 'galeria_imagem' . Can anyon...
asked by 10.10.2016 / 16:38
1
answer

How to insert external CSS in Codeigniter 3

I would like to know how to insert an external css file into a Codeigniter 3 view. I configured the $ autoload ['helper'] = array ('url'); I tried calling in the following ways: <link rel="stylesheet" type="text/css" href="<?=site_url(...
asked by 05.12.2015 / 22:49
2
answers

mPDF - Error generating PDF | Message: preg_replace ():

I'm using mPDF to generate the PDF: $this->load->helper('mpdf'); $this->data['dadosboleto'] = $this->boleto_model->GerarBoletoCEF($id_cliente, $data_inicial, $data_final); $this->data['view'] = 'boleto/bole...
asked by 26.11.2015 / 05:20
1
answer

Problem with connection to DB with codeigniter (mysqli) [duplicate]

Well, I've done a registration form for newsletter. And while loading the database in autoload['libraries'] , it displays an error    Call to undefined function mysqli_init () in /home/softlove/public_html/system/database/drivers/mysq...
asked by 07.07.2016 / 13:15