Answer the question
In order to leave comments, you need to log in
How to open access to resources folder?
For training, I pulled symbolic components into an empty project. Plugged it in, set it up and it seems to be working.
I 'll ask questions right away:
1. In the Openserver settings, I specified the /public folder as the ROOT in which the index file is located. I store style files in /resources, but I can't get access to it (I get 404). How to do it right?
Here is the folder structure:
- public
- resources
- storage
.htaccess settings:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php ?$1 [L,QSA]
2. How to get a route by its name? $view['router'] is not available Perhaps some component is missing or configured incorrectly.
Installed components:
- "symfony/routing": "^4.2",
- "symfony/config": "^4.2",
- "symfony/templating": "^4.2",
- "symfony/yaml": "^4.2" ,
- "symfony/http-foundation": "^4.2",
- "symfony/http-kernel": "^4.2",
- "doctrine/orm": "^2.7.3",
- "symfony/dotenv": "^5.1",
- "twig/twig": "^3.0",
- "symfony/asset": "^5.1"
Thanks for your help
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question