Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: FPDF
Post: RE: FPDF

vitnibel Wrote: (05-12-2020, 09:26 AM) -- Before outputting data to the browser, you need to set the correct type of content. PHP Code: -- $this->response->setHeader('Content-Type', 'application/...
16,058 Views
6 Replies
05-14-2020, 12:32 AM
niklas
    Thread: Looping over $this->request
Post: RE: Looping over $this->request

Hi, I don't tested but maybe it helps you to name your form-fields as array with name="blabla[]" and use php array_filter function. Array-Form Example: https://stackoverflow.com/questions/90736...
2,120 Views
2 Replies
05-12-2020, 08:04 AM
niklas
    Thread: FPDF
Post: FPDF

Hello together, I implemented the FPDF Library in my CI4 project. It is in app\Libraries\fpdf.php + font folder. I added the following to autoload: Code: -- $classmap = [ 'FPDF' => APPPATH ....
16,058 Views
6 Replies
05-12-2020, 05:20 AM
niklas
    Thread: Using a thrid party Class in CI4
Post: RE: Using a thrid party Class in CI4

jreklund Wrote: (05-05-2020, 11:29 AM) -- Hi, you need to use \QRcode\QRcode::png('blablabla'), as you put that folder under that namespace. If I remember it correctly. Or it's just \QRcode::png('bla...
3,672 Views
2 Replies
05-11-2020, 07:22 AM
niklas
  Lightbulb Thread: [solved] File Upload in CI4 does not work?
Post: RE: File Upload in CI4 does not work?

I solved it... while I was searching for something else in the Form Helper Description I found my mistake of this morning :-) For everybody who will have the same question in the future: Just us...
6,292 Views
2 Replies
05-05-2020, 07:25 AM
niklas
    Thread: [solved] File Upload in CI4 does not work?
Post: [solved] File Upload in CI4 does not work?

Hello, here is a short snipper from my project: My View: PHP Code: --                                                                         -- And on the Controller's side:  (Ju...
6,292 Views
2 Replies
05-05-2020, 04:30 AM
niklas
    Thread: Delete with Join or Where_in not working
Post: RE: Delete with Join or Where_in not working

Hi, I don't know if its a copy & paste failure but you provide your not working functions two times with $service_id. Did you changed one of them to $location_id?
8,701 Views
6 Replies
05-05-2020, 02:04 AM
niklas
    Thread: Using a thrid party Class in CI4
Post: Using a thrid party Class in CI4

Hello toghether, i want to use a third party class in my project to generate qr codes. There is an old libary "qrlib" which is not namespaced but it works :-) So I added the class "QRcode" to t...
3,672 Views
2 Replies
05-05-2020, 01:27 AM
niklas
    Thread: ->onlyDeleted() returns all
Post: RE: ->onlyDeleted() returns all

Oh my god.. I think i should not develop in the morning before 2 cups of coffee to activate my brain. The deleted_at row was not nullable so 0000-00-00 00:00 is default value of mySql. I change it ...
5,173 Views
5 Replies
03-30-2020, 05:58 AM
niklas
    Thread: ->onlyDeleted() returns all
Post: RE: ->onlyDeleted() returns all

includebeer Wrote: (03-22-2020, 08:08 AM) -- Can you confirm there are rows with the deleted_at field with a NULL value?  Maybe your previous delete() really deleted all the rows. -- Yes i can conf...
5,173 Views
5 Replies
03-25-2020, 03:58 AM
niklas
    Thread: restore soft deleted item in database
Post: RE: restore soft deleted item in database

includebeer Wrote: (03-22-2020, 08:31 AM) -- You should be able to restore a row by setting the deleted_at field to NULL. I wonder if the update was actually executed of if it was discarded because t...
4,330 Views
2 Replies
03-25-2020, 03:52 AM
niklas
    Thread: ->onlyDeleted() returns all
Post: ->onlyDeleted() returns all

Hello, I would like to use the softDelete Function from the CI Model Class. If I call the class with PHP Code: -- ->where(xyz)->delete() -- it work's finde. In my database the datetime will b...
5,173 Views
5 Replies
03-18-2020, 09:09 AM
niklas
    Thread: restore soft deleted item in database
Post: restore soft deleted item in database

Hello, i am using the ci Model Class with $useSoftDeletes = true. Now i want to implement a recycle bin to my application. Searching the deleted items works fine.. but i don't know how to restore...
4,330 Views
2 Replies
03-18-2020, 05:46 AM
niklas

Theme © iAndrew 2016 - Forum software by © MyBB