Update index.php

to make sure the $page['secure'] has its effect and it also provides
controllers an feature to change the view as per its needs.