Welcome,
I'm a little newbie in symfony but I wanna create website with upload file. I found good bundle https://github.com/SymfonyContrib/FileFieldBundle but when I try add it by composer then it's not possible becouse lastest correct Symfony version is 2.3. Anyone know how import it to Symfony3?
Or anyone have some bundle with file uploader based on jQuery File Upload working with Symfony3?
Thanks for help
You can't use that bundle unless the maintainer of the bundle migrates it to Symfony 3. In his composer.json the required symfony version is stated as ~2.3 which is equivalent to >=2.3 <3.0.0 (composer version syntax). You are of course free to fork the bundle on github and make the required changes yourself to make it compatible with Symfony 3 and issue a pull request.
Related
I installed symfony 2.8 on debian 9. Using native packages from the link repository.
Debian9 Package Symfony
Installed several components that use symfony, for example doctrine, twig, asset, etc.
In debian they were divided between /var/lib/dpkg and /usr/share folders.
In /var/lib/dpkg it is displayed that in the info folder are the .list of each component.
Result folder info
I searched for related information to make a "hello world" by displaying the native symfony and it's really little or nothing I got.
I have used and implemented projects in symfony in a traditional way with versions 2.8, 3.x. And I really can't emulate it with the native, as you would normally work.
Has anyone managed to deploy symfony natively?
Any help or tip will be welcome.
Thank you in advance.
Package from debian seems to install symfony 2.8 and the docs for this are:
https://symfony.com/doc/2.8/best_practices/creating-the-project.html
Simply by using:
symfony new blog
this should generate a basic app for you and then you should run
php app/console server:run
and if you visit http://localhost:8000/ in your browser you should see your app according to
https://symfony.com/doc/2.8/setup.html
My project is currently setup with 3.4 version of symfony. I want to move to symfony4. So I moved to symfony4 as per suggestions in http://symfony.com/doc/current/setup/upgrade_major.html.
In my current project there are many custom bundles are created in src directory. But now in Symfony 4 there is no bundle structure.
So please guide me how can I proceed with my existing bundles in Symfony4?
Thanks in advance...
You can follow the tuto made by Symfony, right here: https://symfony.com/doc/current/setup/upgrade_major.html (you already done that)
And then to update you project structure: https://symfony.com/doc/current/setup/flex.html#upgrade-to-flex
I need to use XML-RPC on my project. I have found a library phpxmlrpc (http://phpxmlrpc.sourceforge.net/) and I need to add it to vendor. I have copied the files in vendor folder (/vendor/phpxmlrpc/) and I need to see the xmlrpc_client class in my Controller. But I am not able to manage how to edit autoload.php to see the class, after a few attemps I am still getting "Attempted to load class "xmlrpc_client" from the global namespace.
Did you forget a "use" statement?" so I am pretty sure that there is some mess in my structure. I would really appreciate any help.
You must use a composer install tools for integrate 3third party code in your project a lot of possible time.
For XML-RPC you have this bundle : Symfony-rpc-bundle
When you install with composer install your bundle a lot of tricks run in your project symfony. Don't forget to add this bundle in your AppKernel.php file.
With this your code for XML-RPC is more upkeeping and stable.
A bit late with the answer, I fear, but phpxmlrpc can now be installed using Composer as you would do with any other package.
When checking out info about that library, just make sure that you look up the latest version on GitHub and not any more on SourceForge.
I am trying to update my project written in Symfony 2.0 into Symfony 2.2.
Moving source codes into 2.2 project ended with config.yml and security.yml incompatibiliy.
Is there way how to properly migrate Symfony 2.0 project into Symfony 2.2?
It better to wait until Symfony 2.3 before migrating. It will be released somewhere in May. It's the first LTS (Long Time Support) release, meaning that it's maintained for three years. So: You don't have to worry about BC breaks for 3 years!
For the migrating of Symfony 2.0 to 2.3: There is nothing you can do. Read the UPGRADE-*.md files (which are stored in the root of the symfony/symfony package) and fix anything that is in their in your code. Every BC break that's important for normal users will be put in those UPGRADE files.
If you can't solve it after the fixing everything in the UPGRADE files, you should take a look at the CHANGELOG.md files in the root of the package (e.g. the symfony/security package). Try to find something that is changed and cause your code to break.
Finally, if you don't get your script working, there are a lot of active Symfony2 users who are waiting to help you. Take a look at the community page and find your place to ask questions.
I'm on the latest 32 bit WampServer 2 server with php 5.4
I follow the step to download Doctrine 2.2 from Git without problem.
Now I'm at configuration step.
I'm stuck to the first step .
http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/configuration.html
Where is the file autoload.php. I have basicaly this folder architecture.
doctrine
..bin
..lib
....Doctrine
......ORM
......vendor
........doctrine-build-common
........doctrine-common
........doctrine-dbal
........Symfony
..tests
..tools
there is no autoload.php file in the vendor folder ?.
where is that file ?.
Do anybody have a tutorial on how to install Doctrine 2.2 . I already installed Doctrine 1.2 before without problem, but the Doctrine 2.2 is completely different then the old one.
Thanks very much.
It uses namespacing for loading classes.