Questions tagged as 'codeigniter'

0
answers

Corrupt file with PHPWord

I am working with the PhpWord library and the templateProcess.php file to generate documents based on templates, now it works correctly if I only add text. However when wanting to add images the file is generated as corrupt. Has anyone hap...
asked by 13.07.2017 / 19:56
0
answers

Change base_url by ip of the computer

I have a problem changing the base_url of CodeIgniter , what I did was replace localhost/Taller/ with my ip and the xxx.xxx.x.xx/Taller/ on my own laptop if I accept it but I want to see it from another laptop and I ca...
asked by 26.07.2017 / 12:54
0
answers

How to use an Oracle function from PHP?

Cordial Greeting. I am working on Oracle 11G from PHP and it is necessary to use some functions of ORACLE from PHP and since I am passing more than 1 query at the same time to use INSERT ALL I am sending the data in an array and using the fun...
asked by 11.07.2017 / 21:02
0
answers

Modify URL in codeigniter php

good, I'm starting to use php and codeigniter as framework, and I want to know if it is possible to modify the url, for example I have the following user driver and within an edit method to edit a user's data the url would remain this way : lin...
asked by 27.06.2017 / 14:30
0
answers

PHP error - Failed to open stream: No such file or directory in X on line Y

I am using codeigniter to develop a basic system that allows me to make registrations, deletions, modifications and queries. In the local connection everything works fine, also at the moment of opening the main page, but at the moment of acce...
asked by 21.07.2017 / 05:24
1
answer

How to cear several pages pdf in TCPDF in a dynamic way?

The detail is that I am creating pdf, through ids, which if I enter a single id, it creates the document all right with the information it needs but, when I pass two ids there generates the problem, because when I send them it seems to me in the...
asked by 20.07.2017 / 17:43
0
answers

Edit a record using a form (ajax, codeigniter)

I have in my table filled by a query and a foreach in this table after filling it with records, I have a button to edit which opens a modal and from there edit the record. The problem is that when you open the modal, you do not load th...
asked by 29.06.2017 / 17:54
1
answer

Upload Image using ajax and codeigniter

What I am trying to do is to make a record of a table with different fields, one of them of image. with my code the record is done in the BD except for the image. This is my code: this is the modal where the fields of the table are: <!--...
asked by 23.06.2017 / 13:37
1
answer

Error retrieving the last ID of a record and using it - codeigniter - PHP

Hol I have problems with my code PHP , the header if REGISTER that means that everything is fine but when I want to recover the ID I get the error I do not know if the error is in my controller when calling that id or in my model when i...
asked by 14.06.2017 / 17:00
1
answer

Call to undefined method CI_DB_mysqli_result :: fetch_assoc ()

I use codeigniter and I want to traverse an array with a while but it gives me the following error    - > Call to undefined method CI_DB_mysqli_result :: fetch_assoc () while ($row=$mate->fetch_assoc()) { $mcID['mcID'...
asked by 10.07.2017 / 21:40