Questions tagged as 'codeigniter'

1
answer

Insert data from an array into the database by CodeIgniter

I am trying to make a INSERT using CodeIgniter and would like to know if there is a more practical form than the one used below: MODEL public function set_cliente() { $dados = array( 'codigo_cliente' => $this-&...
asked by 27.09.2017 / 20:58
0
answers

Problem loading view

Hello, I'm consuming an API in my controller and, upon receiving the result, I'd like to load a view from the user panel. But when the script arrives in the $this->load>view() method nothing happens. I debugged to know if the inform...
asked by 21.09.2017 / 20:56
1
answer

Search in two tables with codeigniter

I have the following situation:    WhenIselectamarcaintabelacompatibility,IwanttoListallproductsintheProducttable,whosecodeisequaltotheselectedbrandcode.Example:WhenselectingToyotayoushouldlistCabin,andselectingMazdashouldonlyreturnCabinI've...
asked by 29.09.2017 / 22:13
0
answers

Problems with login to codeigniter after switching windows to ubuntu

I'm in trouble, I created a codeigniter application in my localhost, had the windows 10 operating system installed and used the Wamp Server installed, but I formatted my computer and installed ubuntu linux as an operating system and installed Xa...
asked by 11.07.2017 / 01:52
1
answer

Doubt with Jquery and select

I'm maintaining a code from another programmer and I'm having difficulty with two select. I need to get the time for each field and add up this interval, until then, okay, I've done some tests using the Moment.js lib and it caters me perfectl...
asked by 12.07.2017 / 20:11
1
answer

How to receive id's in the controller / model

I'm creating a project and I ran into a problem. The idea is to add participants to a specific event. I've created everything right: controllers, models and views. My question is how do I get the controller / model to receive the id's of each p...
asked by 16.07.2017 / 18:12
1
answer

Editing Fields in Event Modal with FullCalendar + Javascript

Good afternoon, I'm creating a simple calendar using the FullCalendar plugin, I'm almost ready, but now I need to click on the desired event to display the information of the event and the option to update the image below you can see how it is c...
asked by 06.06.2017 / 19:56
1
answer

$ _SESSION does not persist on other pages in the application

Good evening guys, I am using the codeigniter and native session of php $ _SESSION, it happens that I can only use the session when instancio in a login controller that redirects to another page, but if I want to use the information of this s...
asked by 14.03.2017 / 02:18
0
answers

have to make the request only when there is change in the database? instead of checking every second

<script type="text/javascript"> function atualizarTarefas() { $("#header").load("<?=site_url('home/notificar/')?>"); } setInterval("atualizarTarefas()", 1000); </script>     
asked by 16.03.2017 / 03:17
1
answer

advanced datatables CodeIgniter

I'm breaking my head with a little something in CodeIgniter, I need to create an advanced table that extends details about each table item, as you can see in the code below I can not separate a detail line for table item, att; <div class="c...
asked by 20.12.2016 / 19:11