public static function create($id) { self::check_logged_in(); $recipe = Resepti::find($id); $aineet = Raaka_aine::all(); View::make('recipe_ingredient/new.html', array('recipe' => $recipe, 'aineet' => $aineet)); }
public static function edit($id) { self::check_logged_in(); $recipe = Resepti::find($id); $ainesosat = Ainesosa::allRelatedToRecipe($id); $aineet = Raaka_aine::all(); View::make('recipe/edit.html', array('attributes' => $recipe, 'ainesosat' => $ainesosat, 'aineet' => $aineet)); }
public static function sandbox() { $Bouillabaisse = Resepti::find(1); $reseptit = Resepti::all(); // Kint-luokan dump-metodi tulostaa muuttujan arvon Kint::dump($reseptit); Kint::dump($Bouillabaisse); }
public static function edit($id) { $resepti = Resepti::find($id); View::make('resepti/edit.html', array('attributes' => $resepti)); }