Yii 2 comes in two flavors, basic and advanced, and it might seem counterintuitive to use the
advanced template in a beginner’s book, but ironically, the advanced template is easier to use if
your application requires a working user model that stores users in a database. Most modern web
applications will need this functionality and the advanced template has a ready-made solution for
The other big benefit to the advanced template is that it divides the application between front
and backend, which answers the inevitable question of “where do I put my admin area?”
Not only do I want to introduce you to this amazing php framework, but I also want you have a
starting point for your projects that includes everything you need to build a robust database-driven
web application. While the out-of-the-box advanced template is extremely helpful, it is missing some
key pieces, which we will fill in with this book.
The goal is to provide you with a boilerplate template that you can use for all your future projects.