Skip to content
Snippets Groups Projects
Commit f49fe9c2 authored by user's avatar user
Browse files

Finalisation purchaseproof, init, home page/button

parent 082d3b6e
Branches
No related tags found
No related merge requests found
...@@ -5,6 +5,8 @@ namespace App\Controller; ...@@ -5,6 +5,8 @@ namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use App\Entity\PurchaseProof;
class HomeController extends AbstractController class HomeController extends AbstractController
{ {
...@@ -27,9 +29,14 @@ class HomeController extends AbstractController ...@@ -27,9 +29,14 @@ class HomeController extends AbstractController
} }
if ($user) { if ($user) {
$links['My Wishlists'] = $this->generateUrl('app_wishlist_index'); $links['My Wishlists'] = $this->generateUrl('app_wishlist_index');
$links['Profile'] = $this->generateUrl('user_profile'); $links['Profile'] = $this->generateUrl('user_profile');
$links['Logout'] = $this->generateUrl('logout'); $links['Logout'] = $this->generateUrl('logout');
dump($user->getId());
$links['See my purchase proofs'] = $this->generateUrl('user_purchase_proofs');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment