Revision #3 has been created by kiran sharma on Nov 19, 2012, 2:21:14 PM with the memo:
« previous (#2)
Create sitemap.xml file dynamically on root folder with one hit
SEO, SiteMap, XML
[...]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"