public function actionIndex()
	{
		// Fetch all the dashboard cards for the current user
		$cards 		= $this->loadDashboardCards();
		$cardData 	= array();

		// Find all the metadata for those cards and load them
		foreach ($cards->value as $id=>$url)
		{
			$metadata 		= $this->loadCardDetailsModel($id);
			$cardData[$id] 	= $metadata->value;
		}

		return array(
           'cards'    => $cards->value,
           'cardData' => $cardData
       );
	}
public function actionIndex()
	{
		// Fetch all the dashboard cards for the current user
		$cards 		= $this->loadDashboardCards();
		$cardData 	= array();

		// Find all the metadata for those cards and load them
		foreach ($cards->value as $id=>$url)
		{
			$metadata 		= $this->loadCardDetailsModel($id);
			$cardData[$id] 	= $metadata->value;
		}

		return array(
           'cards'    => $cards->value,
           'cardData' => $cardData
       );
	}
public function actionIndex ( ) { // Fetch all the dashboard cards for the current user
 $ cards = $ this -> loadDashboardCards ( ) ; $ cardData = array ( ) ; // Find all the metadata for those cards and load them
 foreach ( $ cards -> value as $ id => $ url ) { $ metadata = $ this -> loadCardDetailsModel ( $ id ) ; $ cardData [ $ id ] = $ metadata -> value ; } return array ( 'cards' => $ cards -> value , 'cardData' => $ cardData ) ; }
Retrieves all the dashboard cards for the current user
Retrieves all the dashboard cards for the current user