Your IP : 216.73.216.240
<?php
/**
* @package My RSS Reader
* @copyright Copyright (C) 2010 FalsinSoft. All rights reserved.
* @license GNU/GPL
* @website http://falsinsoft-joomla.blogspot.com
* @email falsinsoft@gmail.com
*
*/
defined('_JEXEC') or die();
jimport('joomla.application.component.view');
class MyRSSReaderViewAbout extends JView
{
function display($tpl = null)
{
$model =& JModel::getInstance('MyRSSReader', 'Model');
$parser =& JFactory::getXMLParser('Simple');
JToolBarHelper::title('My RSS Reader ['.JText::_('COM_MYRSSREADER_ABOUT').']', 'generic.png');
$model->SetToolbarParams();
$parser->loadFile(JPATH_COMPONENT.DS.'myrssreader.xml');
$nodes = $parser->document->children();
$version = JText::_('COM_MYRSSREADER_UNKNOWN');
foreach($nodes as $node)
{
if($node->name() == 'version')
{
$version = $node->data();
break;
}
}
$this->assignRef('version', $version);
$this->assignRef('model', $model);
parent::display($tpl);
}
}
?>