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 in frontend site
Customizing a URL in an advanced template
Example – using advanced templates in the same domain
How to use advanced templates in shared hosting