In the following examples, I will put changes to code in bold text.
------------------------------------------------------------------------------------------------
The following will echo an empty string:
$atomFeedArray = array(
'title' => 'Test Title', //required
'link' => 'http://www.testurl.com/feed/', //required
'charset' => 'utf-8', // required
'entries' => array()
);
$channel = Zend_Feed::importArray($atomFeedArray, 'atom');
echo $channel->link();
------------------------------------------------------------------------------------------------
The following will echo the link as expected:
$atomFeedArray = array(
'title' => 'Test Title', //required
'link' => 'http://www.testurl.com/feed/', //required
'charset' => 'utf-8', // required
'entries' => array()
);
$channel = Zend_Feed::importArray($atomFeedArray, 'atom');
echo $channel->link('self');
------------------------------------------------------------------------------------------------
The following will also echo the link as expected:
$atomFeedArray = array(
'title' => 'Test Title', //required
'link' => 'http://www.testurl.com/feed/', //required
'charset' => 'utf-8', // required
'entries' => array()
);
$channel = Zend_Feed::importArray($atomFeedArray, 'rss');
echo $channel->link();
------------------------------------------------------------------------------------------------
Is this really the intended behavior?
--
View this message in context:
http://www.nabble.com/Zend_Feed%3A%3Alink%28%29-Not-Working-as-Expected-For-Zend_Feed_Atom--tp20345583p20345583.html
Sent from the Zend Framework mailing list archive at Nabble.com.