Welcome Guest, Not a member yet? Register   Sign In
Introduction to CodeIgniter 4 Blog Posts

(03-03-2016, 09:19 PM)kilishan Wrote: ...

1. Requests and Responses
2. Content Negotiation
3. Dependency Injection and Services
4. Routing

So far I've not been all that thrilled about anything presented in these 4 blog posts. Routing seems the nicest new change for CI4.

The "DI" is a little odd to me. If I want a db connection in my model, which I pretty much always do, I don't really want to inject it the way your example shows, every single time. I wouldn't even call it DI, and you haven't, as you're managing everything through a class called "Services". It really is a service locator, right? Sure to turn up the noses of many. Personally, I don't care if it's a service locator, but I think I'd need to wait and see how you tie everything together and make CI4 as easy to use as the CI I've been using since 2009. If it's really just a service locator, why not just pass around the "container"? There's really no need to answer these questions. I'm just typing what I'm thinking.

Requests and Responses, and Content Negotiation ... not anything for me to get excited about. I guess I found the force_https() function nice, and hope that it includes a way to give a 404 if I'd prefer not to redirect to the https. For instance, force_https(FALSE);. Sometimes redirecting to the https page is not in the best interest of the website.

Obviously you're still a long ways away from a launch date, so we're likely to see things change drastically. I'm looking forward to seeing more blog posts, and although you've got a repo that can be peeked at, I do like that I don't have to go there to find out what's going on. One thing I'm more interested to see is how you plan to allow class extensions. That's probably just handled in Config/Services, yes?

No need to break out the flame thrower, as these are just my first impressions and thoughts.

Thanks for your time, and the hard work.

Messages In This Thread
RE: Introduction to CodeIgniter 4 Blog Posts - by skunkbad - 03-09-2016, 08:00 PM

Theme © iAndrew 2016 - Forum software by © MyBB