Overwrite this page
To overwrite this page, please create a new route called root that redirects to your controller or anywhere else. This is just to overwrite the route called root.
Use a splash page
If you want to use a splash page, you can change the template in your controller to layout/splash ($view->setTemplate('layout/splash')).
Variables
The splash page require a few variables to be set, since it a bilingual page, you can pass a translator and some strings, or arrays with both language already set.
- title
- The title of your app, very simple usually.
- description
- Description of the application. The client should provide this.
- issued
- The date your app was first issued
- modified
- The date your app was modified the last time. This is optional if, for example, this is the first version of the app. If omitted, the issued date will be used as the modified date.
- homeRoute
- The name of the route for your app home page (i.e.: locale/directory, or locale/myApp/home). This is the same route you would pass to the URL Helper ($this->url()) when building a link to the home page.
- homeRouteParams
- An array of the params required to build your home page route.
- termsRoute
- The name of the route for the terms and condition page, if your app has a terms and condition page. Otherwise it uses the Canada.ca default.
- termsRouteParams
- An array of the params required to build your terms and conditions page route.
French first?
If you are working in an organization that is French first (their HQ is in Québec), you can use the template 'splash-fr-first', to switch the language order around.