I'm trying to route the homepage / to a specific template. In my routes.php file, i've tried these two without result:
return array(
'/' => 'specific/_entry',
'' => 'specific/_entry',
);
A site's home page is routed via a special route __home__
. I don't believe you can set that in routes.php
, but it's worth a shot. Generally, you specify a Single as the homepage, and can set the template there. It defaults to index
.
defineSiteRoutes()
? I've no idea if it makes a difference compared to routes.php
.
Commented
Sep 17, 2015 at 15:14
__home__
entry to the route. It's using Yii's router class and I don't believe __home__
to be a proper route. Why not use a Single or include the other template in the index.html
template?
Commented
Sep 17, 2015 at 16:16