Yii 2 Test Controller

I had an interesting problem with the DatePicker widget, which as of this writing has a known bug in Yii 2. It had to do with formatting the date, and this is a topic I cover in my book. Since I wrote the book, I came across another solution that someone posted in the forum, involving the date formatter that Yii 2 provides. So to understand the formatter better, I placed it in my test controller, so I could play around with it.

One thought on “Yii 2 Test Controller”

  1. Thank you so much for this.
    I have been attempting to learn Yii 2.0 for about 2 weeks now and stumbling and fumbling my way through.
    A few minutes into this tutorial and it clicked in.
    You’ve done a great job of easily explaining how it all works, so thank you for taking the time to put this down for everyone to learn from.

    Cheers,
    -Colin

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s