Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Saving image from data:img
Post: Saving image from data:img

Hi, I want to save an image in the public folder "img/signatures" created with canva / js from data:image string. Code: PHP Code: --         $noteId = 16;         $signName = 'note-' . $noteId . '....
2,325 Views
1 Replies
01-19-2022, 10:47 AM
AngelRodriguez
    Thread: Model Update ignores null
Post: RE: Model Update ignores null

kenjis Wrote: (12-31-2021, 03:55 AM) -- @"AngelRodriguez" iRedds's code works. I don't know why you can't update. -- Problem solved: My "Customer Entity" was: PHP Code: -- class Customer ex...
4,430 Views
8 Replies
01-03-2022, 06:13 AM
AngelRodriguez
    Thread: Model Update ignores null
Post: RE: Model Update ignores null

iRedds Wrote: (12-30-2021, 04:34 AM) -- You can pass an array instead of an entity. PHP Code: -- $data = [     'field' => 'key', ]; $model->update($id, $data); // or $data = [     'id'      => $id,...
4,430 Views
8 Replies
12-30-2021, 05:08 AM
AngelRodriguez
    Thread: Model Update ignores null
Post: RE: Model Update ignores null

kenjis Wrote: (12-29-2021, 05:43 PM) -- Why customer_deleted is null and customer_deleted_at is not null? It does not make sense. Is it soft-deleted or not? [hr] And if you use soft-deletion, you sho...
4,430 Views
8 Replies
12-30-2021, 03:18 AM
AngelRodriguez
    Thread: Model Update ignores null
Post: Model Update ignores null

Hi, I have a weird problem, I don't know if I'm doing something wrong or it is a bug. I have a soft delete for customers. CustomerModel and Customer Entity. Database field: customer_deleted: 1,0, NULL...
4,430 Views
8 Replies
12-29-2021, 08:10 AM
AngelRodriguez
    Thread: Expired cache files are not cleared
Post: Expired cache files are not cleared

Hi, I have a problem, expired cache files are not cleared. Saving cache like (this for example) version CI 4.1.1 PHP Code: -- if (! $foo = cache('foo')) {     echo 'Saving to the cache!';     $foo...
1,580 Views
2 Replies
04-20-2021, 09:49 AM
AngelRodriguez
    Thread: Is possible to create logs in another file and folder?
Post: RE: Is possible to create logs in another file and...

motownphilippe Wrote: (03-04-2021, 06:05 AM) -- Could you please describe exactly how you achieved this. I am trying to group messages of a similar kind into a separate file. I can’t work out how to ...
6,381 Views
5 Replies
03-04-2021, 12:58 PM
AngelRodriguez
    Thread: Is possible to create logs in another file and folder?
Post: RE: Is possible to create logs in another file and...

kenjis Wrote: (02-22-2021, 04:40 PM) -- It seems it is possible if you create another Logger instance for another log path by yourself. -- Im using 4.0.4 and is not possible in this version change t...
6,381 Views
5 Replies
02-23-2021, 03:37 AM
AngelRodriguez
    Thread: Is possible to create logs in another file and folder?
Post: Is possible to create logs in another file and fol...

Hi, I want to create logs in different folders with different names. Is it possible? (I'm using CI4 system Logger) For example: /logs     /app        applog-date.log        applog-date.log     /oth...
6,381 Views
5 Replies
02-22-2021, 11:42 AM
AngelRodriguez
    Thread: Best way to create a notifications system in nav bar
Post: RE: Best way to create a notifications system in n...

Ok, View Cells is a good solution. Thank you
4,889 Views
6 Replies
10-21-2020, 12:20 PM
AngelRodriguez
    Thread: Best way to create a notifications system in nav bar
Post: RE: Best way to create a notifications system in n...

Pfeilei, the notification shows to everyone, logged or not. Nc03061981, the controller is for the page. Inside the page there is a nav bar with the notifications. How can use the page controller ...
4,889 Views
6 Replies
10-21-2020, 02:19 AM
AngelRodriguez
    Thread: Best way to create a notifications system in nav bar
Post: Best way to create a notifications system in nav b...

Hi, I want to create a "notification system" with an icon in the nav bar that shows the notifications. This notifications shows in every page. What is the best way to do this? I have 2 dif...
4,889 Views
6 Replies
10-20-2020, 08:33 AM
AngelRodriguez
    Thread: Store HTML in database
Post: Store HTML in database

Hi, In my web, users can write their custom HTML and I store it in MySQL database. Which is the best way to store this HTML?  CI4 escape this html by default? should i use htmlspecialchars, a...
1,890 Views
1 Replies
10-05-2020, 03:06 PM
AngelRodriguez
    Thread: Add class to row with HTML Table Class
Post: RE: Add class to row with HTML Table Class

The template applys to all elements. I want some rows to have specific class, not all. For example, having all row background color red, green or gray defined by status, etc.
2,172 Views
2 Replies
08-28-2020, 12:01 PM
AngelRodriguez
    Thread: Add class to row with HTML Table Class
Post: Add class to row with HTML Table Class

Hi,  I see in the documentation that you can add class to cell items like this: Code: -- $cell = ['data' => 'Blue', 'class' => 'highlight', 'colspan' => 2]; $table->addRow($cell, 'Red', 'Gre...
2,172 Views
2 Replies
08-28-2020, 08:52 AM
AngelRodriguez
    Thread: Invalid serialization data for DateTime object
Post: RE: Invalid serialization data for DateTime object

Chroma Wrote: (08-27-2020, 04:22 AM) -- Rather than saving the DateTime as a string, have you considered saving it as an integer, that is the number of seconds, as you are getting from time()? Tha...
2,073 Views
2 Replies
08-27-2020, 10:03 AM
AngelRodriguez
    Thread: Invalid serialization data for DateTime object
Post: Invalid serialization data for DateTime object

Hi, I create an entity and cache it. When I try to get from cache it gives me error: "Invalid serialization data for DateTime object". This is example code: Code: -- $web = new \App\Entities...
2,073 Views
2 Replies
08-26-2020, 03:04 AM
AngelRodriguez

Theme © iAndrew 2016 - Forum software by © MyBB