My SF3 application is working just fine in dev built-in PHP server. However some assets give me an error when getting to a production Apache server : the images are showing a 404 error, and a Bundle …
Tag: symfony
Symfony finder, Ignore dot files doesn’t work with FTP address
I’m using Symfony, and the component Finder. I want to get a file whose name begins with dot (“.file.txt”) and this file is in other server. If I do this: I don’t get any file but, if I rename the file and remove dot (“file.txt”) then I can find it. If I try to find files that start with dot
How to run Symfony web server from PhpStorm
Is it possible for me to run Symfony web-server from the PhpStorm? I know I can run it from the command line: I just wonder if there is any way how to configure PhpStorm to do it for me. Answer Symfony WebServer Bundle Setup Click Run -> Edit Configurations In the dialog box Click + (add) Select PHP Script from
Impossible to access an attribute on a string variable
In my controller i just pass some users on my twig view. Here is my function : And this is my twig view where i want to display some information on a html table : And i got this error : Impossible to access an attribute (“name”) on a string variable (” “). for this line : Thanks for help!
Attach excel stream to swiftmailer message?
I’m trying to attach an Excel file in a SwiftMailer message. The trick is that I don’t want to save the excel file and then attach it and then delete it, instead I just want to generate the excel and …
Get first day date of the week on a given date PHP
I have a date 2015-12-16 i want to get the date of the first day’s date for the current week of my date here 2015-12-16 is in the week 51 of the year then i want to get the first day’s date of the …
Symfony3 Custom User Provider doesn’t work
I tried to implement everything per Symfony documentation but authentication seems to not work at all. Take a look at what I exactly did: security.yml security: encoders: AppBundleEntity…
Symfony3 wont convert file to UploadedFile
I’m following this tutorial http://symfony.com/doc/current/controller/upload_file.html but the $file isn’t being converted to an UploadedFile, it stays as a string: var_dump($file); /home/owner/…
Symfony3 controller constructor injection is not working
I want to pass the EntityManager instance into the constructor of my controller, using this code: namespace AppBundleController; use SymfonyBundleFrameworkBundleControllerController; use …
using SncRedisBundle on platform.sh
I’m trying to get my app hosted by platform.sh, my problem is that I use SncRedisBundle, with this config: When I push to platform.sh, their build process include a call to composer update, which end like this: Generating optimized autoload files > IncenteevParameterHandlerScriptHandler::buildParameters > SensioBundleDistributionBundleComposerScriptHandler::buildBootstrap > SensioBundleDistributionBundleComposerScriptHandler::clearCache Script SensioBundleDistributionBundleComposerScriptHandler::clearCache handling the symfony-scripts event terminated with an exception [RuntimeException] An error