Ejemplo n.º 1
0
	/**
	 * Show specific Cuisine by ID
	 *
	 * @param: $id An integer value representing the Cuisine ID
	 * @return: None
	 */
	public function show($id){
		$this->template->id = $id;

		//Get the Cuisine from the database
		$Cuisines = Cuisine::retrieve(array("id"=>$id));
		//If successful and the count is equal to one (as desired)
		//set the Cuisine object in the template to be displayed
		if(count($Cuisines) == 1){
			$this->template->Cuisine = $Cuisines[0];
		}

		$this->template->display('show.html.php');
	}