Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Shared Hosting to VPS
Post: RE: Shared Hosting to VPS

HarmW94 Wrote: (Today, 03:32 AM) -- Okay, this is getting more and more interesting. When I get an error message that I caused myself, I get the error page in production mode. When I then switch it t...
717 Views
11 Replies
44 minutes ago
kenjis
    Thread: Getting DB data as correct PHP types directly
Post: RE: Getting DB data as correct PHP types directly

Set numberNative to true: https://github.com/codeigniter4/CodeIgniter4/blob/dcbcf3828d350de7036a86f52a7e5127c969298e/app/Config/Database.php#L45 See numberNative in https://codeigniter.com/user_guid...
12 Views
1 Replies
53 minutes ago
kenjis
    Thread: How to retrive cacheKey generated ?
Post: RE: How to retrive cacheKey generated ?

See https://github.com/codeigniter4/CodeIgniter4/blob/dcbcf3828d350de7036a86f52a7e5127c969298e/system/Cache/ResponseCache.php#L74-L87
23 Views
2 Replies
1 hour ago
kenjis
    Thread: Disallowed characters in URI
Post: RE: Disallowed characters in URI

For such search keywords, I recommend using a query string (e.g., ?q=keyword).
149 Views
8 Replies
7 hours ago
kenjis
    Thread: Disallowed characters in URI
Post: RE: Disallowed characters in URI

loxia Wrote: (Yesterday, 07:59 PM) -- As I said before. In my opinion the url should not be decoded before the checkDisallowedChars. -- It is wrong. Because the decoded data is processed in the fr...
149 Views
8 Replies
7 hours ago
kenjis
    Thread: Disallowed characters in URI
Post: RE: Disallowed characters in URI

loxia Wrote: (Yesterday, 07:59 PM) -- According to that, there are two options. Option 1. I can turn off the whole check by setting it to '' which is not safe for the whole project. Option 2. I c...
149 Views
8 Replies
7 hours ago
kenjis
    Thread: Disallowed characters in URI
Post: RE: Disallowed characters in URI

Before 4.4.7 there was no filtering at all. It was a bug in CI4.
149 Views
8 Replies
8 hours ago
kenjis
    Thread: Custom validation rule, variables on Model
Post: RE: Custom validation rule, variables on Model

No problem.
207 Views
5 Replies
8 hours ago
kenjis
    Thread: Disallowed characters in URI
Post: RE: Disallowed characters in URI

Read https://codeigniter.com/user_guide/general/urls.html#adding-permitted-characters
149 Views
8 Replies
10 hours ago
kenjis
    Thread: Custom validation rule, variables on Model
Post: RE: Custom validation rule, variables on Model

By default, if you use an Entity, only changed field data is passed when updating to the database. So if a required field is not changed, the field is not passed to Validation, and it returns a valid...
207 Views
5 Replies
05-28-2024, 05:47 AM
kenjis
    Thread: CI4 Executable Files
Post: RE: CI4 Executable Files

I think these are no harm, but not consistent. So I send a PR to fix. https://github.com/codeigniter4/CodeIgniter4/pull/8918
101 Views
2 Replies
05-28-2024, 05:42 AM
kenjis
    Thread: codeigniter 4.5 loading view issue
Post: RE: codeigniter 4.5 loading view issue

It is a bug in your code, not in a framework. The test() method must return a string (or Response object). Quote: -- A Controller is simply a class file that handles an HTTP request. URI Routin...
140 Views
3 Replies
05-27-2024, 04:28 PM
kenjis
    Thread: How to understand entities, save, hasChanged
Post: RE: How to understand entities, save, hasChanged

spreaderman Wrote: (05-26-2024, 02:12 AM) -- In line 3 below, I used find() and it returns a $category entity.  Is line 3 required in order for line 5 to work properly?  How does hadChanged() underst...
330 Views
11 Replies
05-26-2024, 05:53 PM
kenjis
    Thread: Custom validation rule, variables on Model
Post: RE: Custom validation rule, variables on Model

See the Important note in https://codeigniter.com/user_guide/models/model.html#in-model-validation
207 Views
5 Replies
05-26-2024, 03:32 AM
kenjis
    Thread: How to understand entities, save, hasChanged
Post: RE: How to understand entities, save, hasChanged

Read https://codeigniter.com/user_guide/models/entities.html#checking-for-changed-attributes
330 Views
11 Replies
05-25-2024, 10:53 PM
kenjis
    Thread: Can't run codeigniter 4 on macOS Sonoma (v14.4.1)
Post: RE: Can't run codeigniter 4 on macOS Sonoma (v14.4...

@"InsiteFX" Oh, yes. I meant XAMPP for Mac. I found this thread: https://forum.codeigniter.com/printthread.php?tid=81860
218 Views
5 Replies
05-25-2024, 10:49 PM
kenjis
    Thread: Server Overload Risk Vulnerability Fixes
Post: RE: Server Overload Risk Vulnerability Fixes

It seems you just changed "^...$" to "\A...\z" and added `u` option. Could you elaborate about the DoS attacks?
188 Views
2 Replies
05-25-2024, 02:35 PM
kenjis
    Thread: Can't run codeigniter 4 on macOS Sonoma (v14.4.1)
Post: RE: Can't run codeigniter 4 on macOS Sonoma (v14.4...

Don't use XAMPP for Mac. XAMPP does not have intl. If you use XAMPP, you need to compile intl.so by yourself. If `php -m | grep intl` returns intl, the cli php command works. Run `php spark serv...
218 Views
5 Replies
05-25-2024, 02:33 PM
kenjis
    Thread: Shared Hosting to VPS
Post: RE: Shared Hosting to VPS

First of all, I recommend you learn git. Because git is a basic tool for collaboration in modern development. For example, if you don't know git, you cannot contribute to CodeIgniter at all even if y...
717 Views
11 Replies
05-24-2024, 07:57 PM
kenjis
    Thread: Shared Hosting to VPS
Post: RE: Shared Hosting to VPS

Git is a very complicated tool. It is not easy to learn. You would need much time to learn it. Introduction to version control with Git https://learn.microsoft.com/en-us/training/paths/intro-to-v...
717 Views
11 Replies
05-23-2024, 02:37 PM
kenjis

Theme © iAndrew 2016 - Forum software by © MyBB