In your first code example you load index.tpl from a theme subfolder. {extends 'layout.tpl'} will load layout.tpl from the template root folder. So ar you sure that ...
In your first code example you load index.tpl from a theme subfolder. {extends 'layout.tpl'} will load layout.tpl from the template root folder. So ar you sure that ...