public function index() {
		$tablesToList = [];
		$data = [];

		if (Configure::check('Sitemap.tables')) {
			$tablesToList = Configure::read('Sitemap.tables');
		}

		foreach ($tablesToList as $table) {
			$tableInstance = $this->loadModel($table);
			$data[$table] = $tableInstance->find('forSitemap');
		}

		$this->set('data', $data);
		$this->set('_serialize', false);
	}
public function index() {
		$tablesToList = [];
		$data = [];

		if (Configure::check('Sitemap.tables')) {
			$tablesToList = Configure::read('Sitemap.tables');
		}

		foreach ($tablesToList as $table) {
			$tableInstance = $this->loadModel($table);
			$data[$table] = $tableInstance->find('forSitemap');
		}

		$this->set('data', $data);
		$this->set('_serialize', false);
	}
public function index ( ) { $ tablesToList = [ ] ; $ data = [ ] ; if ( Configure :: check ( 'Sitemap.tables' ) ) { $ tablesToList = Configure :: read ( 'Sitemap.tables' ) ; } foreach ( $ tablesToList as $ table ) { $ tableInstance = $ this -> loadModel ( $ table ) ; $ data [ $ table ] = $ tableInstance -> find ( 'forSitemap' ) ; } $ this -> set ( 'data' , $ data ) ; $ this -> set ( '_serialize' , false ) ; }
Index page for the sitemap.

@return void
Index page for the sitemap .