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 MyRSSReaderViewCategory extends JView
{
function display($tpl = null)
{
$edit = JRequest::getCmd('edit');
$category_table =& JTable::getInstance('Category', 'Table');
$category_operation = JText::_('COM_MYRSSREADER_NEW');
if($edit == true)
{
$cid = JRequest::getVar('cid', array(0), '', 'array');
$id = (int) @$cid[0];
$category_table->load($id);
$category_operation = JText::_('COM_MYRSSREADER_EDIT');
}
JRequest::setVar('hidemainmenu', 1);
JToolBarHelper::title(JText::_('COM_MYRSSREADER_CATEGORIES') .': ['.$category_operation.']', 'generic.png');
JToolBarHelper::save('category_save');
JToolBarHelper::cancel('category_cancel');
$this->assignRef('category_details', $category_table);
parent::display($tpl);
}
}
?>