What I would do is add a feed() action into your Articles controller.
Then in your routes.php add:
Router::parseExtensions('rss').
Then you just call it like...
/articles/feed.rss
And it all works, assuming you've got the rss layout and stuff like
that.
Then you can change the url using routes as well if you want to.
Cheers,
Adam
On Oct 17, 6:59 am, MaxCzap <[EMAIL PROTECTED]> wrote:
> I'm having some trouble with Cake parsing the URL for my RSS feed.
> I've got a controller that looks like this:
>
> <?php
> class RssController extends AppController {
>
> var $name = 'Rss';
> var $helpers = array('Time');
>
> var $uses = array('Article');
>
> /* RSS Feed: All articles */
> function index()
> {
> /* Index method */
> }
> /* Other methods */}
>
> ?>
>
> Here's the weird bit. If I go to mywebsite.com/rss I get the
> following error: .
>
> You are seeing this error because controller Controller could not be
> found.
>
> Notice: If you want to customize this error message, create app/views/
> errors/missing_controller.thtml.
>
> Fatal: Create the class below in file : app/controllers/controller.php
>
> <?php
> class Controller extends AppController {
> var $name = '';}
>
> ?>
>
> But it works if I go to "mywebsite.com/rss_"! It's baffling. I've
> checked my routes.php file and commented everything out. I'm a
> relative newb to Cake, so I'm hoping someone can tell me where I
> should be looking. Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---