• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Requests and Responses in CI4: an Overview

#1
Just wanted to let you guys know I posted a short blog post that provides a 100-mile overview of how to work with the new Requests and Responses. Hopefully it will help ease your mind about how scary change might be. Smile

In intend to start doing small overview posts like this every couple of weeks, or until I run out of material that's firm enough (or exciting enough) to talk about, so if there's anything in particular you want me to discuss, just let me know.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply

#2
Pretty interesting! Can't wait to read more about CI4.
Best regards,
José Postiga
Web Developer
Reply

#3
(03-03-2016, 12:26 AM)kilishan Wrote: Just wanted to let you guys know I posted a short blog post that provides a 100-mile overview of how to work with the new Requests and Responses. Hopefully it will help ease your mind about how scary change might be. Smile

In intend to start doing small overview posts like this every couple of weeks, or until I run out of material that's firm enough (or exciting enough) to talk about, so if there's anything in particular you want me to discuss, just let me know.

Can you write more about content negotiation?
Reply

#4
Hello, Lonnie! Be sure to keep writing, it will be interesting Smile
Reply

#5
(03-03-2016, 03:24 AM)orionstar Wrote: Can you write more about content negotiation?

That sounds like a great next topic. Will do.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply

#6
Thanks for taking your time to share some inside information about the changes about to come in the next release. I really appreciate it.

Although I do hate the BC issue 4.0 will bring, I do understand that once in a while you have to make some radical changes in design in order to move forward (even how painful it will be for me to manage upgrading a few xxx clients).

I wonder, have their been any thoughts or decisions made about when 3.x will be EOF? For example, support for 3.x will be dropped 1 year after the release of 4.0, or it will be dropped when 5.0 will be released, etc? I believe it's good to have some clarity about this before 4.0 will be released.
Reply

#7
I'm kind of interested to see how this is used in conjunction with views as we know them in CI3-. I know your blog post references headers and redirects usage for the Response class, but will we also use it for output of loaded views?
Reply

#8
(03-03-2016, 05:00 PM)Diederik Wrote: I wonder, have their been any thoughts or decisions made about when 3.x will be EOF? For example, support for 3.x will be dropped 1 year after the release of 4.0, or it will be dropped when 5.0 will be released, etc? I believe it's good to have some clarity about this before 4.0 will be released.

There has not been a specific timeframe determined yet, just that it will be a pretty good length since the 3.x and 4.x branches are so different.

(03-03-2016, 05:29 PM)skunkbad Wrote: I'm kind of interested to see how this is used in conjunction with views as we know them in CI3-. I know your blog post references headers and redirects usage for the Response class, but will we also use it for output of loaded views?

Views are output very similar to how they are currently, but there is a global function available, view() that is used instead of $this->load>view(). So it would be something like this:

Code:
public function index()
{
    $data = [...];

    echo view('user/profile', $data);
}


There's more to behind the scenes, of course, and that will definitely get a blog post of its own. Smile
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply

#9
Thanks the article!

By the way, your blog pages have all the same title "New Myth Media Blog".
Would you please add article title in an article page?
In this case, not "<title>New Myth Media Blog</title>", but something like "<title>Requests and Responses In CodeIgniter 4: New Myth Media Blog</title>".
Do you want to write tests for your apps? Our book, CodeIgniter Testing Guide would help you.
Reply

#10
(03-03-2016, 03:24 AM)orionstar Wrote: Can you write more about content negotiation?

Done. See this thread for all new posts.


(03-03-2016, 07:06 PM)kenjis Wrote: By the way, your blog pages have all the same title "New Myth Media Blog".
Would you please add article title in an article page?
In this case, not "<title>New Myth Media Blog</title>", but something like "<title>Requests and Responses In CodeIgniter 4: New Myth Media Blog</title>".

Dang. You're right. Well, it's running on a quick flat-file blog system I put together over a few days of spare time, so that doesn't surprise me. Smile Will fix it, but can't guarantee when. Up against a fairly tight milestone deadline at the moment, and my open-source time for the day is over after the latest blog post.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.