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

Changes

Title unchanged

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

Category unchanged

How-tos

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
9 followers
Viewed: 63 780 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: 11 years ago
Update Article

Revisions

View all history