Location: PHPKode > projects > Chalange > com_chalange/administrator/controllers/players.php
 * @version		$Id: application.php 13243 2009-10-20 04:01:04Z ian $
 * @package		Joomla
 * @subpackage	Config
 * @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant to the
 * GNU General Public License, and as distributed it includes or is derivative
 * of works licensed under the GNU General Public License or other free or open
 * source software licenses. See COPYRIGHT.php for copyright notices and
 * details.

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

require_once( JPATH_COMPONENT.DS.'views'.DS.'categoriesadmin'.DS.'view.html.php' );

class ChalangeAdminControllerPlayers extends ChalangeAdminController
  		function add(){
  		function edit(){
  			JRequest::setVar('view','playerAdmin'); //indico que vista se encarga de ello
  			parent::display(); //muestro la vista
  		function remove(){
			$cid = JRequest::getVar('cid',array(),'','array');
  			$db =& JFactory::getDBO();
  			if (count($cid)){
  				$cids= implode(',',$cid);
  				$query="DELETE FROM #__gcd_players WHERE id IN ($cids)";
  				if (!$db->query()){
  					//echo "<script>alert('".$db->getErrorMsg()."');
Return current item: Chalange