/mvc/controllers/sitemap
[return to app]1
<?php
2 /**
3 * Passes the URLs from the sitemap model to the view
4 */
5 class sitemapController {
6 /**
7 * Turns off the layout as the sitemap output is XML
8 *
9 * @return array
10 */
11 public function index() {
12 mvc::$layout = null;
13 return array('urls' => get::model()->getUrls());
14 }
15 }