我需要为网站生成可能会有非常多用户贡献内容的站点地图。我读过这个教程:https://laravel-news.com/2016/09/laravel-sitemap/它提供了这样的例子: public function podcasts()
{
$podcast = Podcast::active()->orderBy('updated_at', 'desc')->get();
我在codeignite中创建站点地图。但我正在面对网站地图的一些错误。任何人都会告诉我什么是错误。 控制器: - public function sitemap()
{
header("Content-Type: text/xml;charset=iso-8859-1");
$this->load->view("sitemap");
}
检视: - <?php e