symfony
-
How to add custom css file in symfony
- check for node installed or not [node -v] if not install it.
- composer require symfony/webpack-encore-bundle
- npm install webpack-notifier
- composer require symfony/asset
- create a file in public/style/style.css
- call the css file in base.html.twig file with code as follow
{% block stylesheets %} <link rel="stylesheet" href="{{ asset('style/style.css') }}" > {% endblock %}
- npm run dev
-
Symfony registration form Error
The controller for URI “/register” is not callable: Environment variable not found: “MAILER_DSN”.
Go to .env file
MAILER_DSN=gmail://xxxxxxxx@gmail.com:mdp@localhost MAILER_URL=gmail://xxxxxxxx@gmail.com:mdp@localhost
-
Install symfony in xampp
C:\xampp\htdocs>composer create-project symfony/website-skeleton lee_example
start the server for project
C:\xampp\htdocs\lee_example>php -S 127.0.0.1:8000 -t public