Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Display a custom error if the cache driver fails
Post: Display a custom error if the cache driver fails

What would be the best way to display a custom error message when the cache driver fails (Memcached in my case)? I thought of creating a FILTER, and within this filter testing the ->getCacheInfo() ...
56 Views
0 Replies
04-23-2024, 06:22 AM
b126
    Thread: TypeError when trying to use MemcachedHandler for sessions
Post: RE: TypeError when trying to use MemcachedHandler ...

kenjis Wrote: (04-18-2024, 04:26 PM) -- PHP Code: --     public string $driver = 'CodeIgniter\Session\Handlers\MemcachedHandler'; -- It is recommended that you learn about PHP's namespacing or how...
162 Views
3 Replies
04-19-2024, 12:04 AM
b126
    Thread: TypeError when trying to use MemcachedHandler for sessions
Post: TypeError when trying to use MemcachedHandler for ...

I am trying to use MemcachedHandler for my sessions. I have thus these two lines in Config\Session.php: PHP Code: --     public string $driver = MemcachedHandler::class;     public string $savePat...
162 Views
3 Replies
04-18-2024, 06:26 AM
b126
    Thread: CI4 equivalent to CI3 magic autoloader
Post: CI4 equivalent to CI3 magic autoloader

Is there an equivalent in CI4 to the "magic" CI3 autoloading features? I know the \Config\Autoload.php from CI4 has nothing to do with it but cares about linking classnames to their full namespaces. ...
105 Views
1 Replies
03-26-2024, 09:20 AM
b126
    Thread: Session expiration zero
Post: Session expiration zero

I would like a confirmation regarding session expiries. The documentation isn't clear or I didn't understand it very well. In app/Config/Session.php  what would be the results with : Code: --  ...
140 Views
1 Replies
03-12-2024, 07:31 AM
b126
    Thread: What is difference Factories vs services
Post: RE: What is difference Factories vs services

kenjis Wrote: (03-08-2024, 05:32 PM) -- b126 Wrote: (03-08-2024, 02:08 AM) -- The underlying concept would therefore be something like : $x = service('myLib') --> if no instanciation method is f...
2,631 Views
9 Replies
03-11-2024, 02:17 PM
b126
    Thread: What is difference Factories vs services
Post: RE: What is difference Factories vs services

kenjis Wrote: (03-31-2022, 05:40 PM) -- Services: https://codeigniter4.github.io/userguide/concepts/services.html Factories: https://codeigniter4.github.io/userguide/concepts/factories.html >...
2,631 Views
9 Replies
03-08-2024, 02:08 AM
b126
    Thread: Support for multiple .env file.
Post: RE: Support for multiple .env file.

kenjis Wrote: (03-07-2024, 04:32 AM) -- I say, if you put a file with the secrets for production on your development machine, it is dangerous practice. You should not do it, and you should not know ...
2,729 Views
10 Replies
03-07-2024, 08:47 AM
b126
    Thread: Working with Configuration Files
Post: RE: Working with Configuration Files

kilishan Wrote: (03-06-2024, 12:24 PM) -- The problem with supporting multiple env files is that it encourages devs to save those in their git repositories, which is a horrible idea from a security s...
6,341 Views
9 Replies
03-07-2024, 03:56 AM
b126
    Thread: Support for multiple .env file.
Post: RE: Support for multiple .env file.

kenjis Wrote: (03-06-2024, 04:56 PM) -- It seems an idea to make the world complicated. If you build development environment, it needs only one .env for development. If you build production envir...
2,729 Views
10 Replies
03-07-2024, 03:52 AM
b126
    Thread: Support for multiple .env file.
Post: RE: Support for multiple .env file.

yahyaerturan Wrote: (12-19-2021, 05:50 PM) -- I was thinking it would be great to have different .env files in CI4. Loading order:  .env .env.dev (optional file) (overrides keys from previous o...
2,729 Views
10 Replies
03-06-2024, 10:47 AM
b126
    Thread: Working with Configuration Files
Post: RE: Working with Configuration Files

kilishan Wrote: (05-29-2018, 07:26 AM) -- The Config/Boot options happen early enough it's possible that you could do that, though I've never tried something like that honestly. If you're concerned a...
6,341 Views
9 Replies
03-06-2024, 10:41 AM
b126
    Thread: allowedHostnames not passed to link_tag
Post: allowedHostnames not passed to link_tag

I am running CI 4.3.3 I have multiple hostnames defined in Config\App.php : PHP Code: -- public array $allowedHostnames = ['host1','host2','host3']; -- And I have a "fake" base URL defined in...
143 Views
1 Replies
02-21-2024, 04:20 AM
b126
    Thread: Strange 404 routes when having a specific file in /public/
Post: RE: Strange 404 routes when having a specific file...

Quote: -- Many thanks for your accurate reply --
741 Views
2 Replies
03-19-2023, 04:27 AM
b126
    Thread: Strange 404 routes when having a specific file in /public/
Post: Strange 404 routes when having a specific file in ...

Here's a problem that's easy to cope with but still strange to me. Say I have a presenter route defined as follows in /Config/Routes.php PHP Code: -- $routes->presenter('products', ['controller...
741 Views
2 Replies
03-10-2023, 04:32 AM
b126
    Thread: Different values from current_url and service('uri')
Post: Different values from current_url and service('uri...

I came across some strange behavior between two similar functions. Why isn't base_url returned with the second call (current_url)? service('uri') Code: -- $uri = service('uri'); dump($uri); ...
493 Views
2 Replies
02-22-2023, 04:14 PM
b126
    Thread: Oracle OCI8 support for CI 4
Post: RE: Oracle OCI8 support for CI 4

kenjis Wrote: (06-08-2022, 05:23 PM) -- Codeigniter v4.2.0 was released on June 3, 2022. https://codeigniter4.github.io/CodeIgniter4/changelogs/v4.2.0.html -- Would it be possible to add the stand...
22,206 Views
24 Replies
02-21-2023, 09:32 AM
b126
    Thread: Automatic Project Updating
Post: RE: Automatic Project Updating

kenjis Wrote: (02-20-2023, 05:51 PM) -- @"b126" You need to merge "tatter/patches" branch, not "tatter/scratch". -- Unfortunately, I only see my master branch + the new tatter/scratch Is there a c...
6,611 Views
6 Replies
02-21-2023, 03:23 AM
b126
    Thread: ErrorException #1 reported
Post: RE: ErrorException #1 reported

kenjis Wrote: (02-01-2023, 09:33 PM) -- I sent a PR. https://github.com/codeigniter4/CodeIgniter4/pull/7212 -- This is great! Thank you.
1,606 Views
5 Replies
02-02-2023, 01:05 AM
b126
    Thread: ErrorException #1 reported
Post: RE: ErrorException #1 reported

kenjis Wrote: (01-31-2023, 07:06 PM) -- Quote: -- Allowed memory size of 134217728 bytes exhausted (tried to allocate 65015808 bytes) APPPATH\Views\errors\html\error_exception.php at line 96 -- ...
1,606 Views
5 Replies
02-01-2023, 03:03 PM
b126

Theme © iAndrew 2016 - Forum software by © MyBB