Author: alex
-
[Solution] Invalid command ‘RewriteCond’, perhaps misspelled or defined by a module
Check to make sure you have mod_rewrite enabled. Under Apache 2+ sudo a2enmod rewrite && sudo service apache2 restart or sudo a2enmod rewrite…
-
[Solution] Symfony SwiftMailer multiple recipients
You can use an “array” : $to = array( “user1@gmail.com” => “User 1”, “user2@gmail.com” => “User 2” ); Example : $subject…
-
Symfony Could not convert database value “” to Doctrine Type array
This error appear because your type not a “Array” Change type to “array” /** * @var string * * @ORM\Column(name=”informations”, type=”array”)…
-
Symfony How to pass javascript variables values from twig to controller
Tip : var url = ‘{{ path(“yourroute”, {‘id’: ‘id’}) }}’; url = url.replace(“id”, this.value); window.location.href = url;
-
-
Symfony is not a valid entity or mapped super class.
Define the real entity: * @ORM\Entity For example Before : <?php namespace BookingBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Table(name=”booking”) */ class…
-
phpMyAdmin not found after installation
I share with you the solution : Create a link /var/www sudo ln -s /usr/share/phpmyadmin /var/www/ sudo nano /etc/apache2/apache2.conf Then add the…
-
Symfony3 ClassNotFoundException after bundle creation
Il faut impérativement ajouter son bundle dans le fichier composer.json comme ceci par exemple “autoload”: { “psr-4”: { “AppBundle\\”: “src/AppBundle”, “Acme\\Bundle\\BlogBundle\\”:…
-
Git add,commit and push commands in one command
Grâce à cette astuce vous allez pouvoir git add . & git commit et git push en 1 seule commande ! Add…
-
Console Command Symfony 3
Create a database php bin/console doctrine:database:create Update database php app/console doctrine:schema:update –force Create a bundle php bien/console generate:bundle Create a entity php…