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',
);
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 toroutes.php. – Mats Mikkel Rummelhoff Sep 17 '15 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 theindex.htmltemplate? – Bryan Redeagle Sep 17 '15 at 16:16