Questions tagged as 'codeigniter'

1
answer

Add or subtract value from a field in a database with CodeIgniter

I'm using CodeIgniter in my application, what I need to do is the following I have in my database a field with stock name, this field is integer value, I need to do the following when I hold a sale it will have to decrease the amount of my sale...
asked by 08.09.2014 / 23:33
1
answer

Difficulty with two segments of uri

They are trying to create the url, where the first segment is the user and the second is his file, eg link Controller public function user() { $user_url = $this->uri->segment(1); } ^ This would return the profile with all f...
asked by 18.10.2014 / 21:49
1
answer

Edit similar fields in codeigniter

Imagine the following situation: Registered in a database of several telephones of a single establishment (local_1, +55 xx xxxx-xxxX; local_1, +55 xx xxxx-xxxY; ...); The problem: Enable the user to edit these various phones (this incl...
asked by 03.06.2014 / 05:54
1
answer

Filter tables to be mapped by Doctrine from the EntityManager (without command line)

I'm developing a feature in my application that automatically map and generate entities. The problem is that the user can select the tables that he wants to map, so I must insert a filter with the name of the tables to be converted. To do thi...
asked by 17.07.2014 / 13:46
2
answers

Web service, play data in bd error empty field

My 3rd foreach is creating 2 arrays with null values, I wanted to understand why, so I am not able to insert into the database giving a var_dump ($ product) it shows me the correct results, the 3 products I have in xml, but when I create the arr...
asked by 07.03.2014 / 13:04
2
answers

getJSON with parsererror

I am attempting to perform the deletion and an item, so in controller I send a code to view 0 or 1 , but the JS function responsible for dealing this return is always falling in fail with the following error.    error...
asked by 13.12.2018 / 19:04
0
answers

Codeigniter 3: Batch update update_batch ()

I need to batch update in a table, I have an object named $data as the example below: Array ( [0] => stdClass Object ( [nota] => [frequencia] => [temaTcc] => [id...
asked by 13.12.2018 / 19:04
1
answer

Codeigniter 3 MY_Model database

I'm developing an application where each client will have their database. My scenario then will be: Client will login and through his ID apply the configuration of the bank for that client. Then, in addition to the default database, it will have...
asked by 12.12.2018 / 20:33
1
answer

How to keep the form data after submitting using Codelgniter

I'm new to using the Codelgniter Framework, I have a question about how to keep my form data after submitting the page, I'm creating a form with enough fields to fill in, if the user leaves a field blank or writes in a wrong way it will generate...
asked by 11.12.2018 / 22:31
0
answers

Page search results do not load results! I can not find the error!

I type the name in the search field and click on the search the screen is cut as in the image below. When I refresh the page the result appears and disappears quickly. I made a gif below showing the problem: Codeusedinthecontroller(CodeIgnit...
asked by 23.12.2018 / 16:46