Chapter 9. Frontend to Display Rooms to Everyone

This chapter will cover topics about using templates to have multiple apps in the same context.

Yii, indeed, allows you to have an advanced installation able to contain multiple instances of an Yii application. Therefore, every folder in the project is actually a new Yii application.

We will see how to install and configure the project, share data between them, and finally customize the URL to make them pretty for the search engine.

We will cover the following topics in this chapter:

  • Using an advanced template to split frontend and backend
  • Configuring an application using init
    • Example – creating frontend for public access
  • Sharing ActiveRecord models among applications
    • Example – displaying available rooms ...

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.