20 lines
731 B
PHP
20 lines
731 B
PHP
<h1>Coucou</h1>
|
|
<?php $str = "Markdown **text**\n# SOLONG\n*text*."; $md = \App\Helpers\Markdown::convertToHTML( $str ); echo "<p>$md</p>"; ?>
|
|
|
|
<?php
|
|
/*
|
|
$ing = new \App\Domain\Ingredients\Ingredient();
|
|
$ing->num_ingredient = 0;
|
|
$ing->nom_ingredient = "coucou";
|
|
new \App\Domain\Ingredients\IngredientRepository()->add($ing);
|
|
*/
|
|
|
|
$recette = new \App\Domain\Recettes\RecetteRepository()->getByID( 2 );
|
|
$ingredient = new \App\Domain\Ingredients\IngredientRepository()->getByID( 2 );
|
|
// var_dump( $recette );
|
|
// var_dump( $ingredient );
|
|
|
|
// new \App\Domain\Recettes\RecetteRepository()->removeAnIngredient( $ingredient, $recette );
|
|
var_dump( $recette->getAllLinkedIngredients() );
|
|
?>
|