/symfony-samples

symfony samples

Primary LanguagePHP

Installing

install Composer

composer create-project symfony/skeleton:"^5.4" my_project_directory
cd my_project_directory
composer require webapp
php -S 127.0.0.1:8000 -t public
http://127.0.0.1:8000/

adresine gidiyoruz.

image

Controller

1- https://symfony.com/doc/5.4/controller.html#a-basic-controller

RequestResponse

image

Templates

3- https://symfony.com/doc/5.4/templates.html

When using the foo.bar notation, Twig tries to get the value of the variable in the following order:

1. $foo['bar'] (array and element);
2. $foo->bar (object and public property);
3. $foo->bar() (object and public method);
4. $foo->getBar() (object and getter method);
5. $foo->isBar() (object and isser method);
6. $foo->hasBar() (object and hasser method);
7. If none of the above exists, use null (or throw a Twig\Error\RuntimeError exception if the strict_variables option is enabled).

Forms

4- https://symfony.com/doc/5.4/forms.html#installation

image

Veri tabanı işlemleri

5- https://symfony.com/doc/5.4/doctrine.html