RSS Subscribe

View: New views
5 Messages — Rating Filter:   Alert me  

RSS Subscribe

by Josey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello all,

I was working through the RSS helper in CakePHP 1.2 RC3 and it seems
as though my actions are rendering the proper XML format. However,
when I try to view, say, posts/index.rss firefox forces me to download
the RSS file instead of opening it inside of its own RSS feed reader.

Also, how do I go about making it so that when viewing posts/ the RSS
icon appears in the browser to automatically link to the proper feed?

Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: RSS Subscribe

by Josey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Ok, I feel just silly... I forgot to link to my RSS file in my layout/
view.

Ok, so the subscribe button is there, yay! but when I click it I'm
still forced to download the file rather than subscribe to it via
FireFox.

Any help would be wonderful.

On Nov 11, 8:19 am, Josey <josey.mor...@...> wrote:

> Hello all,
>
> I was working through the RSS helper in CakePHP 1.2 RC3 and it seems
> as though my actions are rendering the proper XML format. However,
> when I try to view, say, posts/index.rss firefox forces me to download
> the RSS file instead of opening it inside of its own RSS feed reader.
>
> Also, how do I go about making it so that when viewing posts/ the RSS
> icon appears in the browser to automatically link to the proper feed?
>
> Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: RSS Subscribe

by Josey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Resolved.

From much searching I discovered that a single white space was being
added to the front of my xml.
Even more research directed me to the conclusion that any spaces
before <?php or after ?> in your php will cause this.

I did some grepping and found that, for some reason, all of my tabs
had been converted into 5 white spaces per tab.
NEAT!

A simple search for 5 spaces and replace each instance with a single
tab and we're set.

Remember, any controller, model or view in your application can cause
this.

Quite the tedious little roadblock.

On Nov 11, 8:21 am, Josey <josey.mor...@...> wrote:

> Ok, I feel just silly... I forgot to link to my RSS file in my layout/
> view.
>
> Ok, so the subscribe button is there, yay! but when I click it I'm
> still forced to download the file rather than subscribe to it via
> FireFox.
>
> Any help would be wonderful.
>
> On Nov 11, 8:19 am, Josey <josey.mor...@...> wrote:
>
> > Hello all,
>
> > I was working through the RSS helper in CakePHP 1.2 RC3 and it seems
> > as though my actions are rendering the proper XML format. However,
> > when I try to view, say, posts/index.rss firefox forces me to download
> > the RSS file instead of opening it inside of its own RSS feed reader.
>
> > Also, how do I go about making it so that when viewing posts/ the RSS
> > icon appears in the browser to automatically link to the proper feed?
>
> > Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: RSS Subscribe

by Dardo Sordi Bogado :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> From much searching I discovered that a single white space was being
> added to the front of my xml.
> Even more research directed me to the conclusion that any spaces
> before <?php or after ?> in your php will cause this.

Use the shell Luke: http://bin.cakephp.org/saved/33005

HTH,
- Dardo Sordi.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: RSS Subscribe

by Josey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I just wanted to thank you again for linking me to that shell.
I finally tried it as I was having the same problem on a new
application and it worked wonderfully.

David Persson is brilliant.

On Nov 12, 7:14 am, "Dardo Sordi Bogado" <dardoso...@...> wrote:
> > From much searching I discovered that a single white space was being
> > added to the front of my xml.
> > Even more research directed me to the conclusion that any spaces
> > before <?php or after ?> in your php will cause this.
>
> Use the shell Luke:http://bin.cakephp.org/saved/33005
>
> HTH,
> - Dardo Sordi.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@...
To unsubscribe from this group, send email to cake-php+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---