Search code examples
cakephprssfeedroutes

CakePHP 2.x RSS Feed Route


For my CakePHP Blog I created an RSS Feed as described in the Docs .

Now I can't find or access the feed and I think it might have sth to do with my custom route. I access my Post Index with this route:

Router::connect('/:city/blog', array(
    'controller' => 'posts', 
    'action' => 'index'
    ), 
    array(
      'city' => '[a-z]+'
      )
);

How would I write a Route for this Feed Url?: domain.com/washington/blog/index.rss

(By the way: I followed the docs in detail, so I did add: Router::parseExtensions('rss'); to routes.php)

Thanks in advance!


Solution

  • In routes.php Where did you placed the Router::parseExtensions('rss'); code ?? I did it at the beginning and worked for me.

    enter image description here

    Let me know more about it