It is interesting to note that this is a common problem that people
have with JPEG generation with things like imageMagic, jpGraph and
other tool to generate non-html output.

Sam D

On 11/6/07, seacloud9 <[EMAIL PROTECTED]> wrote:
>
> Fixed:)  Thanks to excellent advice from Siegfried Hirsch!
>
> >Ok, good so far. I guess, your problem is, that the $feeddata, that
> >you get back from Simplepie is not a simple array, but there are
> >object in it.
> >Take a look at the output of debug($feeddata) and you will see, that
> >there are objects in it. The is the main problem I guess.
> >If I remember right, Simplepie has more than once changed the format
> >of its output and used more and more objects instead of simple arrays
> >of arrays.
>
> Was able to trace it back view now looks like:
>
> <?php foreach ($feeddata['child']['']['rss']['0']['child']['']
> ['channel']['0']['child']['']['item']  as $feed): ?>
> <div>
> <h3><?php echo $feed['child']['']['title']['0']['data']; ?></h3>
> <p><?php echo $feed['child']['']['description']['0']['data']; ?></p>
> </div>
> <?php endforeach; ?>
>
> works for me thanks:)
>
>
> On Nov 5, 7:50 am, seacloud9 <[EMAIL PROTECTED]> wrote:
> > Has anyone else run into the same problem?
> >
> > On Nov 4, 9:24 pm, seacloud9 <[EMAIL PROTECTED]> wrote:
> >
> > > I am having issues with mysimplepieview.  I can get a feed but I can
> > > not display the feed.
> >
> > > I am trying to follow this 
> > > example:http://cakeforge.org/snippet/download.php?type=snippet&id=341
> >
> > > Please let me know what is wrong with this view...
> >
> > > View Index.thtml
> > > <?php foreach ($feeddata['items'] as $feed): ?>
> > > <div>
> > > <h3><?php echo $feed['title']; ?></h3>
> > > <p><?php echo $feed['description']; ?></p>
> > > </div>
> > > <?php endforeach; ?>
> >
> > > Controller:
> > > <?php
> > > class FeedController extends AppController
> > > {
> > >         var $name = 'Feed';
> > >         var $uses = null;
> > >         var $components = array('Simplepie');
> >
> > >         function index()
> > >         {
> > >                 /**
>
> > >                  * Pass 2 variables to theSimplePiecomponent, the feed 
> > > URL and the
> > > location of the cache directory
> > >                  */
> > >                 $this->Simplepie->feedurl = 
> > > 'http://www.abc.net.au/news/syndicate/
> > > breakingrss.xml';
> > >                 $this->Simplepie->cachelocation = CACHE . 'simplepie' . 
> > > DS;
> >
> > >                 /**
> > >                  * Set a variable with the returned data from the 
> > > component
> > >                  */
> > >                 $feeddata = $this->Simplepie->feed();
> >
> > >                 /**
> > >                  * Pass the data to the view
> > >                  */
> > >                 $this->set('feeddata',$feeddata);
> >
> > >     }}
> >
> > > ?>
>
>
> >
>


-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to