![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 677 Pomógł: 11 Dołączył: 18.11.2009 Ostrzeżenie: (0%) ![]() ![]() |
Dlaczego może wyskakiwać mi taki komunikat:
alias Sensio\Bundle\FrameworkExtraBundle\Configuration\Route is never used przez ten błąd nie mogę z automatu podpinać namespace bo nie widzi w komentarzu @Route, doczytałem że plugin symfony naprawia problem a tu ciągle to samo ;. Kod <?php
namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; class DefaultController extends Controller { /** * @Route("/", name="homepage") * @param Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction(Request $request) { // replace this example code with whatever you need return $this->render('default/index.html.twig', [ 'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..'), ]); } } |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 3 034 Pomógł: 366 Dołączył: 24.05.2012 Ostrzeżenie: (0%) ![]() ![]() |
o PHP Annotations jest napisane w opisie pluginu do Symfony (IMG:style_emoticons/default/tongue.gif)
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 16.10.2025 - 16:45 |