thank you for your time
it’s not working in index.ctp because in default.ctp i have things to be displayed above the div for content which comes from index.ctp
in default.ctp i display content from index.ctp using the following code.
<?= $this->Flash->render() ?>
<?php echo $this->fetch('content'); ?>
if i place a div for hero image in index.ctp, then it comes after the some above divs
i want to be on all the width and height 100%.
i'm asking if i can write a code to check if it is in main url show the div for hero image, otherwise do not.