Summary

In this chapter, we saw how to use Yii to build a modern web project based on frontend and backend applications. We have found out differences between basic and advanced templates, installing our first advanced project based on advanced templates.

Then we have used the init command to customize development or production environment in which to make the application run. Then we have written an example to display in the frontend rooms list, similar to what we have done in the previous basic template.

Finally, we customized URLs to make them pretty also in the advanced template, to refer to frontend and backend without URL application prefix. We also learned how to use advanced templates in shared hosting that does not have access to the console. ...

Get Yii2 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.