Hi!
Just 'rss' in uninflectedPlural should be enough . But I really don't know
if that solves your problem.
In fact naming your controller "feeds" is much better as you might have to
support atom feeds too. ;-)
I would not recommend that you spend too much time with that problem. Just
rename it and keep in mind that there was "some strange thing with
RssController". Sorry that I can't solve your problem "the right" way.
-- Bernhard J. M. Grün
2008/10/16 MaxCzap <[EMAIL PROTECTED]>
>
> Hi Bernhard,
>
> Thanks for the response. If I'm changing the inflections, would I add
> '.*rss' to the uninflectedPlural array? I tried that and it didn't
> work. Also, I think if that was the the problem I would have gotten a
> reference to a missing ____Controller, not just to Controller.
>
> I thought of renaming the controller and changing routes.php, but that
> feels like a hack and I want this to work right.
>
> Thanks for your help.
>
> -Max
>
> On Oct 16, 5:24 pm, "Bernhard J. M. Grün"
> <[EMAIL PROTECTED]> wrote:
> > Sorry for the double post.
> > Another way would be to rename your controller to "feeds" and use the
> router
> > to map to "rss".
> >
> > -- Bernhard J. M. Grün
> >
> > 2008/10/16 Bernhard J. M. Grün <[EMAIL PROTECTED]>
> >
> > > Hi!
> >
> > > This could be a problem with the inflections (singular/plural of the
> word
> > > rss). Maybe you should try to add "rss" to config/inflections.php
> >
> > > -- Bernhard J. M. Grün
> >
> > > 2008/10/16 MaxCzap <[EMAIL PROTECTED]>
> >
> > >> 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
-~----------~----~----~----~------~----~------~--~---