Questions tagged [symfony-2.5]

This is the Symfony 2.5.x specific tag. Use it in addition to the symfony2 tag if your question is specific to Symfony 2.5.x — not just 2.x.

Symfony is a PHP full-stack web framework developed and maintained by Sensio Labs.

Information

This tag is specific for the 2.5 version of Symfony, which was released on the 1st June 2014. See the tag for general Symfony 2.x questions.

As of 1 June 2014, the latest stable release of Symfony 2.5 is version 2.5.0.

Living on the edge

There are a set of interesting links on the symfony blog about what's new in this version:

Useful links

152 questions
1
vote
1 answer

How to implement an authorization system based on session variables?

I am trying to migrate my application from Silex to Symfony. I am using the Silex before(...) method to register methods to get executed before the action itself is been exectuted to check if some session variables are set. I can do similar with…
CSchulz
  • 10,882
  • 11
  • 60
  • 114
1
vote
1 answer

Unrecognized options "sonata.user.block.menu,

I am trying to Create ACL following this documentation. after following till last step accurately when i reloaded my page by hitting this localhost/project/web/app_dev.php/profile/ url i got following error InvalidConfigurationException:…
0
votes
1 answer

Filter by the month of the current year with Angularjs

I have a screen with accounts payable and I would like to filter each account by month, the current month should be loaded first and have the options of Previous and Next to navigate between the months, before and after. The project is in Symfony 2…
0
votes
1 answer

Why balance doesn't change after paypal transaction completing

I'm using "Omnipay integration with PayPal Express Checkout [symfony2.5]" and this the implimentation for the class namespace Atcop\BookBundle\Libs; use Omnipay\Common\GatewayFactory; class Paypal { protected $gateway = null; private static…
0
votes
1 answer

symfony 2.5 many to one relation foreign key null

i have two entities produit entity and avis with a many to one relation one product can have many avis but when i try to save a comment the field produit_id stay null. i have well configured the relation i think that i have a problem in the…
0
votes
1 answer

Symfony 2.5 - How to catch informations from a page to show it into an other page?

I'm really new in Symfony and AJAX and i hope you can explain me how should I do : I have several elements in Page A, each of them corresponding to elements in several Pages B(1,2,3). I want to catch elements from a specific Page like B2 and to…
vincent
  • 43
  • 7
0
votes
3 answers

set entity attribute (selecting a radio button) with ajax in Symfony 2.5

I want to integrate Ajax in my Symfony project (Symfony 2.5 and jQuery 3). I want to update an attribute of an Entity when I select a radio button. For now, I can get the id of the row that I select. I have searched how to implement this, but I have…
Francisca GV
  • 379
  • 4
  • 11
0
votes
1 answer

Doctrine insert foreign key as NULL

I have two entities: Profesiones and ProfesionesTranslation (one Profesiones have many ProfesionesTranslation). When I trying to insert a set of data, but doctrine insert my foreign key as NULL. I suppose that mapping may be wrong. Profesiones…
0
votes
2 answers

Why does Symfony look for "addWooklyExercise()" instead of "addWeeklyExercise()"

I changed, by client requirement, an entity textfield (weekly_exercise) to a 1:n relation. Everything works normally so far, but when trying to save the form Symfony looks out for a "changed" method name. That's the error message I get Neither the…
Michi
  • 2,480
  • 3
  • 28
  • 38
0
votes
0 answers

Doctrine DQL query produces Error: Expected Literal, got end of string

I am currently trying to build a blog website following a course that uses Symfony 2.5.2. (PHP -v 7.0) To retrieve a post I am using a following Controller /** * @Route( * "/{slug}", * name = "blog_post" * ) * @Template() */ public…
Ankus
  • 11
  • 3
0
votes
1 answer

Symfony 2.5 - automatic redirect after a period of inactivity

I have a Symfony 2.5 project with the FOSUserBundle integrated. I want any logged in user with X amount of idle time on the app to be automatically logged out and redirected to the sign in page. So far I've implemented a solution, that is quite…
Nat Naydenova
  • 771
  • 2
  • 12
  • 30
0
votes
1 answer

Add additional items to a Symfony2 Form Collection type after page submit

I have a form built on the idea of a Purchase. It has Purchase Items, a Payment Amount and a Payment Type (VISA, Mastercard, Cash). I have the form preloaded with 2 Purchase Items however I am trying to add an additional Purchase Item if the user…
0
votes
1 answer

NumberFormatter parse returns false for Currency type on Symfony 2.5

I have a Symfony 2.5 project where I'm trying to implement a currency validation on the back-end. For that reason there's the NumberFormatter class from PHP's Internationalization library with parsing all necessary inputs. For some reason though the…
0
votes
0 answers

Some successfull Skrill payment do not return to my website

My website use Skrill payment. I realized that some of those payments return to my website so I can change the status of the booking, but others (almost 1000 over 9000) doesn't. Some of my clients need to repeat the process over and over until they…
0
votes
1 answer

InvalidArgumentException: The file "/var/www/html/secerp/app/config/config_.yml" does not exist

I have the problem that after the installation of FOSUserBundle I cannot access to Symfony anymore. Every command returns [InvalidArgumentException] The file "/var/www/html/secerp/app/config/config_.yml" does not exist. Seems he lost the…
Atreides78
  • 577
  • 1
  • 7
  • 22