Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Do we really need a default controller?
Post: RE: Do we really need a default controller?

kenjis Wrote: (Yesterday, 10:18 PM) -- I sent a PR: https://github.com/codeigniter4/CodeIgniter4/pull/7199 -- Thank you.
198 Views
10 Replies
Today, 06:10 AM
iRedds
    Thread: Do we really need a default controller?
Post: RE: Do we really need a default controller?

kenjis Wrote: (01-27-2023, 11:59 PM) -- iRedds Wrote: (01-27-2023, 11:20 PM) -- For App::$uriProtocol = 'REQUEST_URI' the request will process the route, and for App::$uriProtocol = 'QUERY_STRING' t...
198 Views
10 Replies
01-28-2023, 07:40 PM
iRedds
    Thread: Do we really need a default controller?
Post: RE: Do we really need a default controller?

I mean that the default controller and method for auto routes is essentially a defined route. That is, it turns out that this is a duplicate functionality. Since defined routes are processed first, a...
198 Views
10 Replies
01-27-2023, 11:20 PM
iRedds
    Thread: Do we really need a default controller?
Post: Do we really need a default controller?

It's about RouteCollection::setDefaultController() and RouteCollection::setDefaultMethod() These methods define the controller and method that will be used for the site root. But by default, we al...
198 Views
10 Replies
01-27-2023, 01:27 PM
iRedds
    Thread: Rework routing.
Post: RE: Rework routing.

@"kenjis" Can you express what you disagree with?
104 Views
3 Replies
01-25-2023, 08:58 AM
iRedds
    Thread: Rework routing.
Post: RE: Rework routing.

I believe that the current state of the framework is a consequence of the fact that the developers had a desire to make 4.x similar/compatible with 3.x. As a result, frameworks use named parameters...
104 Views
3 Replies
01-25-2023, 03:21 AM
iRedds
    Thread: Entity object attribute update problem
Post: RE: Entity object attribute update problem

PHP Code: -- class Jsonable {     protected Entity $entity;     protected string $attribute;     protected object $data;     /**     * @param Entity $entity     * @param string $attr...
1,728 Views
6 Replies
01-24-2023, 11:28 PM
iRedds
    Thread: Rework routing.
Post: Rework routing.

1. Remove dependencies in the constructor of the Router class. Encapsulate the RouteCollection class in the Router class. Add method setCollection(RouteCollection $collection), for tests. 2. Make t...
104 Views
3 Replies
01-24-2023, 10:57 PM
iRedds
    Thread: What is best practice to modify Vendor views?
Post: RE: What is best practice to modify Vendor views?

Views are defined in the config. Or is this not what you need?
285 Views
4 Replies
01-06-2023, 10:17 PM
iRedds
    Thread: Honeypot Codeigniter 4
Post: RE: Honeypot Codeigniter 4

CI4 does not support custom exception handlers. You can only change the global exception handler service.
231 Views
2 Replies
12-26-2022, 02:46 AM
iRedds
    Thread: Valida uniq data
Post: RE: Valida uniq data

No you can not. You need to create your own rule.
188 Views
1 Replies
12-07-2022, 10:49 PM
iRedds
    Thread: $model->update([], ['column' => NULL]) set the whole table column to null
Post: RE: $model->update([], ['column' => NULL]) set the...

Don't pass an empty array.
340 Views
3 Replies
12-07-2022, 10:47 PM
iRedds
    Thread: Model::update() is dangerous
Post: RE: Model::update() is dangerous

How often do you change all records in a database table, making them the same? In my opinion, the probability of this is less than one percent. I don't see the point of adding a method that would cha...
2,161 Views
21 Replies
11-29-2022, 02:07 PM
iRedds
    Thread: How make one route
Post: RE: How make one route

$routes->get('owner(?:\/calendar)?', [Calendar::class, 'Index']);
710 Views
3 Replies
11-24-2022, 09:25 AM
iRedds
    Thread: Problem with AJAX request
Post: RE: Problem with AJAX request

url: "/go/
170 Views
1 Replies
11-17-2022, 09:20 AM
iRedds
    Thread: Pass data to filter
Post: RE: Pass data to filter

Filter::before() are fired before the controller is initialized. You in principle will not be able to get any data from the controller.
202 Views
2 Replies
11-16-2022, 09:58 PM
iRedds
    Thread: Mutli Application Calling Model From Shared Site In Single Installation Codeigniter 4
Post: RE: Mutli Application Calling Model From Shared Si...

To do what you want, your model must have a namespace other than the default one. By default, models have the \App\Models namespace. PHP Code: -- // You need to add namespace in application 1 a...
268 Views
4 Replies
11-16-2022, 09:38 PM
iRedds
    Thread: Entity with Model finder (custom setters)
Post: RE: Entity with Model finder (custom setters)

Just use unit tests.
1,092 Views
12 Replies
11-16-2022, 05:44 PM
iRedds
    Thread: Model::update() is dangerous
Post: RE: Model::update() is dangerous

And what solution do you propose?
2,161 Views
21 Replies
11-15-2022, 09:12 PM
iRedds
    Thread: [5.0] Loading the core framework
Post: RE: [5.0] Loading the core framework

kenjis Wrote: (11-11-2022, 12:20 AM) -- I agree to rework the flow. Here is the 4.3 flow for my understanding: http://blog.a-way-out.net/img/2022/10/31/ci-4.3-process-flow.svg -- Isn't this th...
532 Views
3 Replies
11-15-2022, 09:10 PM
iRedds

Theme © iAndrew 2016 - Forum software by © MyBB