![]() ![]() ![]() Probably it's worth to try and see if it helps. #PHPSTORM NOT GIVING PHP AS FILE OPTION ON NEW FILE MENU INSTALL#I see you downloaded the course code and started from start/ directory, right? Did you do "composer install" or "composer update" to install dependencies? In newer version of Symfony "use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route " annotation does not work and should be replaced with "use Symfony\Component\Routing\Annotation\Route " instead. Probably you just forgot to start your web server? Does the homepage works for you or you also see 404 error when open "/app/example" homepage route? Are you sure you're calling the right host in the browser? Probably you have a several projects spinning on your computer? Make sure that your web server is started, and that the URL in your browser: both host and port - are match the host and port in your browser.ītw, do you see a Symfony 404 error or webserver's 404 error? Symfony's 404 error should be styled nicely and contains Symfony Web Debug Toolbar at the bottom with a lot of useful info. ![]() So, the "debug:router" console command does show that you have "movies_new" route, and it does have "/movies/new" URL. Return $this->render('movie/', array()) Īh, yes, then you should be in dev mode, especially if you see Symfony Web Debug Toolbar below the page. Use Symfony\Bundle\FrameworkBundle\Controller\Controller Use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route Here's a copy and paste of the code (sorry for the formatting, the form mangles the indents and line spacing on copy and paste and there's no preview mode) Manually purging app/cache didn't either.ĭebugging the route as you described shows the start]$ /Applications/DevDesktop/php7_2_圆4/bin/php app/console debug:router | grep moviesĭoesn't appear to be a typo, and it still 404's. I ran that with PHP 7.2 to clear the cache, but it didn't fix the 404 error. I'm bootstrapping in from zero with this course, and there's been no mention so far of dev/prod, but according to output below I'm in dev.Ĭonsole doesn't work from PHP 7.3, and there's no bin directory in this project, but I presume you mean app/console. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |