Questions tagged as 'codeigniter'

1
answer

codeigniter form base_url can not find the route

<form id="idlogin" action="<?= base_url('login/ingresar'); ?>" method="post" role="form" > Login is a controller class Login extends CI_Controller that has a function enter function ingresar(){ print_r($_POST);...
asked by 24.12.2018 / 16:27
1
answer

Problem loading an image with codeigniter

I do not upload the image and I do not know what I have wrong thanks foreach ($adjuntos_documents as $adjuntos){ echo "<div class='content_documents'>"; echo "<div class='document2'>"; echo '<img alt="Ad...
asked by 12.11.2017 / 06:31
1
answer

Concatenate image path with codeigniter

I have my query that returns "products": [ { "id": "1", "name": "entrada p 1", "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit,...
asked by 11.06.2018 / 16:23
1
answer

Verify if you have a foreign key and if not delete it. Codeigniter

I have my table proveedor with a field called status 1 active 0 removed, I only update when removing delete: $data => array('status' => 0); $this->db->update('proveedor',$data); Try changing the update to del...
asked by 02.05.2018 / 01:45
1
answer

Problem with Codeigniter Error: Type: ArgumentCountError

I am using Codeignter and I have the following error:    Message: Too few arguments to function CtrlPdfTest :: index (), 0   passed in C: \ xampp \ htdocs \ bioanestesys \ system \ core \ CodeIgniter.php on   line 532 and exactly 3 expected...
asked by 23.04.2018 / 20:42
1
answer

Autocomplete Bootstrap-Codeigniter-php

I would like you to help me, I can not find the error, I see that you return the data, but they are not shown. I'm trying to auto-complete using bootstrap View: <script type="text/javascript"> $("[name=codigo]").autocomplete({...
asked by 23.02.2016 / 01:00
0
answers

How can I make an editable value from a database to calculate an amount in AJAX?

//para agregar servicios (valores en campos ocultos) $("#btn-agregar-servicio").on("click",function(){ data = $(this).val(); if (data !='') { infoservicio = data.split("*"); html = ""; html += ""+infoservicio1+"";...
asked by 02.01.2019 / 01:28
1
answer

Is the syntax of the database query OK?

I have this query to the DB, but I do not know if the syntax is ok $this->db->select('rut_usu, fecha_ini, fecha_ter'); $this->db->from('hoario'); $this->db->where('rut_usu=',$rut_usu,'AND fecha_ini=',$fecha_ini,'A...
asked by 21.09.2017 / 21:07