public function actionIndexDelete($id=NULL)
	{
		$cards = $this->loadDashboardCards();
		$value = $cards->value;
		
		if (array_key_exists($id, $value))
			unset($value[$id]);

		$cards->value = CJSON::encode($value);
		
		if ($cards->save())
		{
			$newCard = $this->loadCardDetailsModel($id);
			if ($newCard->delete())
				return true;
		}
		throw new CHttpException(500, Yii::t('Api.card', 'Card could not be saved.'));
	}
public function actionIndexDelete($id=NULL)
	{
		$cards = $this->loadDashboardCards();
		$value = $cards->value;
		
		if (array_key_exists($id, $value))
			unset($value[$id]);

		$cards->value = CJSON::encode($value);
		
		if ($cards->save())
		{
			$newCard = $this->loadCardDetailsModel($id);
			if ($newCard->delete())
				return true;
		}
		throw new CHttpException(500, Yii::t('Api.card', 'Card could not be saved.'));
	}
public function actionIndexDelete ( $ id = NULL ) { $ cards = $ this -> loadDashboardCards ( ) ; $ value = $ cards -> value ; if ( array_key_exists ( $ id , $ value ) ) unset ( $ value [ $ id ] ) ; $ cards -> value = CJSON :: encode ( $ value ) ; if ( $ cards -> save ( ) ) { $ newCard = $ this -> loadCardDetailsModel ( $ id ) ; if ( $ newCard -> delete ( ) ) return true ; } throw new CHttpException ( 500 , Yii :: t ( 'Api.card' , 'Card could not be saved.' ) ) ; }
Deletes a card from the dashboard
@param  string $id The card ID
@return boolean
Deletes a card from the dashboard