Back to [[step_6_-_change_the_main_index_part_2|Previous Page]]\\

Out of the main ''row'' divs, we put the upcoming events so that it occupies the whole column
<code html>
<hr />
<p class="text-center"><strong class="infoheader mark"><?= $dataProvider->models[0]['upcomingtitle'] ?></strong></p>
<hr />
<!-- go thru the upcoming event a row at a time -->
<?php
 foreach ($upcoming[0] as $model) {
  echo '<p class="eventhighlight">';
  echo $model['event']."</p>".PHP_EOL;
 }
?>
<hr />
</code>

We now put in the embedded Google calendar
<code html>
<p class="text-center"><i* src="<?= $dataProvider->models[0]['calendar'] ?>" style="border-width:0" width="100%" height="600" frameborder="0" scrolling="no"></i*></p>
</code>

Change the **i*** to **iframe** as the code cannot be put into this wiki.


Go to the [[step_8_-_xxxx|next step]]

Back to [[yii|Yii Main Index]]