Questions tagged as 'codeigniter'

1
answer

How to display messages of a 500 error in CodeIgniter?

I already tried with the directive init_set , the file index.php is set to ENVIRONMENT=DEVELOPMENT , I searched a lot on the web and nothing worked for me. I do not have access to server configuration files, that's why I ne...
asked by 24.01.2018 / 21:03
2
answers

Enable input dependent on a chekbox

The modal shows data that is retrieved by a query and I am filling it with a for cycle. With several tests that I did I could get true or false which is the value of the checkbox but what does not change is the state of the input to enable or...
asked by 15.08.2017 / 20:44
1
answer

I can not generate the view of the posts in CodeIgniter

I follow this video: link Clicking on the individual posts does not load my view and I get this error:    "An uncaught Exception was encountered       Type: Error       Message: Call to undefined method Post :: getPostById ()      ...
asked by 01.09.2016 / 21:31
1
answer

CodeIgniter form that does not validate correctly

I am trying to make a validation that although it validates well but I find two more problems that are related. They are the following: 1. When I use the <?php echo set_value('') ?> for each field and when I return the errors, the f...
asked by 06.06.2016 / 01:16
2
answers

Improve MySql query coding

I have the following a doubt regarding the code that I implemented. Although it is functional, I am not convinced by the way in which I managed to solve the problem. What it does is calculate the average of the recorded data at the exact time...
asked by 06.12.2018 / 15:26
3
answers

How to subtract between 2 hours in PHP

I'm using Codeigniter and I want to subtract it in the view. <?php $cadena = strtotime($seguimiento->horaInicio); $cadena = date("H:i", $cadena); echo $cadena; $cadena2 = strtotime($seguimiento->horaTermino); $cad...
asked by 04.07.2018 / 15:11
1
answer

Pass select values by POST to CodeIgniter controller

You will see I want to obtain the value of the options chosen in the select , through POST , do I have to do a array with the values selected ?, I tried to do something but I did not get it View of the form <?php if(!emp...
asked by 12.01.2017 / 18:34
1
answer

Receive different values of a PHP variable in HTML text

I want to store this: <?php foreach($query3 as $row3) { $calificacionaldrete0->$row3->totalm0; $calificacionaldrete15->$row3->totalm15; $calificacionaldrete30->$row3->totalm30; $calificacionaldrete45->$r...
asked by 01.03.2018 / 19:32
2
answers

Problem when showing and hiding divs with jquery

I have 3 divs with which I want to change the content every time I change the option select, but when I run in the browser it does not do what I expect it to do, will it be that I'm missing something to make it work? function seleccion...
asked by 18.04.2017 / 17:59
1
answer

Pass a variable to the controller from AJAX in CodeIgniter

I have the following problem, in a view I get the data of a user through a foreach and one of them is the code, which through a link, I execute a function that passed the same code as parameter: <a href="" onclick="cargarID(<?=$f...
asked by 21.12.2016 / 15:00