Welcome Guest, Not a member yet? Register   Sign In
Search Results
    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...
292 Views
1 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 ...
1,233 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...
1,233 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...
1,233 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
1,191 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 ...
1,191 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...
1,191 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...
704 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.
636 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...
636 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...
580 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...
580 Views
2 Replies
08-26-2020, 03:04 AM
AngelRodriguez

Theme © iAndrew 2016 - Forum software by © MyBB