Saturday, August 20, 2011

Re: RSS and SEO URL

Prabha,

Your post makes little sense to me. CakePHP comes with a RSS Helper
which can be accessed only from your view. The Cookbook covers this
very well:
http://book.cakephp.org/view/1460/RSS

> rss/index.ctp
This is a view yet you show no view code

> $this->set('items',  $rss->items($posts, 'rss_transform'));
I assume this is a line of code in a controller somewhere, yet you
give no information as to where this is ran? CakePHP does not ship
with a $rss component accessible from a controller so not sure what
the $rss->items($posts, 'rss_transform'); command shoud do other than
throw an error.

> function rss_transform($items) {
>     return array ...
>
> }
We can see this is an action, but what is it supposed to do and why do
you need to call it?

> Now how to access component or helper in rss_transform? I have to get the
> seo url from there.
What component/helper are you using to produce SEO urls and how do you
use it elsewhere in the app?

> Thanks
Sorry I could not help, but hopefully you can answer my questions and
myself or someone else can then help you.

HTH, Paul.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: