Questions tagged as 'codeigniter'

1
answer

Make a SUM with codeigniter

I need to add the detail table data the problem esque does not contain the date if not in the main table, it made it very easy in the following way: Model: $this->db->select('COALESCE(SUM(cajas),0) as total_cajas, COALESCE(SUM(peso),0) a...
asked by 22.04.2018 / 09:40
1
answer

Broken Image PHP

Friends, I have my web with images of small sizes for example of 96x96 px that in development shows normal, but when I upload it to production it comes out in the following way I have to do several times F5, so that the image is visualized,...
asked by 16.12.2017 / 17:22
1
answer

Generate a SQL file with Codeigniter

I want to make a backup of certain tables in my database a .SQL from php using the framework Codeigniter Any idea how to do this? I'm in 0     
asked by 11.01.2018 / 17:20
1
answer

Syntax of a wrong PHP fix

I have a little syntax error with a php fix (I'm a newbie in php), it happens that I need to send my form the load of 2 different tables to 2 select, both models work for me, and each probe and if the load. But sending both inside an array does...
asked by 10.10.2017 / 19:50
1
answer

Go through an array from a controller in Codeigniter

good I'm starting with php and codeigniter, I have the following problem I'm going through an array from my model, which is the result of a query, how can I read my records in the controller one by one? function getClientes(){ $sq...
asked by 10.06.2017 / 06:34
2
answers

Help with clipboard.js and td cells / td

I have a dilemma with clipboard.js What happens is that I have a couple of cells which I would like to click on the field of the cell is copied to the clipboard. As a test, I did the following: <script src="https://cdn.rawgit.com/zenor...
asked by 20.12.2017 / 02:26
1
answer

Error Codeigniter, How to fix it?

I am using codeigniter to develop, the problem is that when I already have the files on the server I get the following error ... An uncaught Exception was encountered Type: RuntimeException Message: Unable to locate the model you ha...
asked by 17.02.2017 / 15:48
1
answer

Codeigniter 3 password_hash

I'm doing a project with CodeIgniter and I need to encrypt the password. Controller methods: Login.php: public function index() { $this->form_validation->set_rules('usuario', 'Usuario', 'trim|required|xss_clean'); $this...
asked by 24.02.2017 / 03:42
1
answer

send checkbox values as fix by ajax [duplicated]

hello I have the following problem .. I need to send the values of a group of checkbox in an array, through ajax and process them in php with codeigniter. I am starting with ajax so I do not know much about the matter, its contribution would b...
asked by 25.01.2017 / 22:44
1
answer

validate form with jquery-validate in ajax

Hi, I have the following problem, I have made a save function with PHP and Codeigniter , using AJAX too .. everything works fine, but it turns out that I want to validate my form using jquery-validate before making the AJAX request, for...
asked by 19.01.2017 / 16:44