Skip to content

Instantly share code, notes, and snippets.

@codingwithsara codingwithsara/index.ctp Secret
Created Aug 14, 2018

Embed
What would you like to do?
<url>
<loc><?= $url; ?></loc>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc><?= $url; ?>info</loc>
<priority>0.5</priority>
</url>
<url>
<loc><?= $url; ?>contact</loc>
<priority>0.5</priority>
</url>
<?php foreach($items as $item): ?>
<url>
<loc><?= $url; ?>items/detail/<?= $item->item_id; ?></loc>
<priority>0.8</priority>
</url>
<?php endforeach; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.