Difference between #2 and #3 of
Create sitemap.xml file dynamically on root folder with one hit

Revision #3 has been created by kiran sharma on Nov 19, 2012, 2:21:14 PM with the memo:

underscore removed
« previous (#2)


Title unchanged

Create sitemap.xml file dynamically on root folder with one hit

Category unchanged


Yii version unchanged

Tags unchanged

SEO, SiteMap, XML

Content changed

This article is use for Yii framework basic structure and [This FrontEnd/BackEnd seperated directory structure](http://www.yiiframework.com/wiki/63/organize-directories-for-applications-with-front-end-and-back-end-using-webapplicationend-behavior/ "This FrontEnd/BackEnd seperated directory structure")

I had reference [This Extension](http://www.yiiframework.com/extension/sitemap-module/ "This Extension") for development.

Create one controller file in controller folder named **KsitemapController** and copy paste below code in that controller file and **Just run that controller with its default action ( index action )**

**You just need to change default variable as your requirements,**

$protectedControllers => "Contain array of controllers which should not include in sitemap.xml file, means its methods also not included in sitemap.xml"
2 1
Viewed: 23 840 times
Version: 1.1
Category: How-tos
Tags: SEO, SiteMap, XML
Written by: kiran sharma
Last updated by: kiran sharma
Created on: Nov 19, 2012
Last updated: 9 years ago
Update Article


View all history