Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
1 answer
322 views

I'm trying to avoid two or more login with the same user at a time using FOSUserBundle in Symfony 2.4, I don't know how to access to info related to authenticated users and how to logout if the user ...
Leroy Garcia's user avatar
0 votes
1 answer
709 views

Anyone know how to use the Filesystem component Symfony2 to create shortcut files? Or another way to create a file shortcut?
user3075249's user avatar
2 votes
1 answer
116 views

I have a problem with my form. I tried to get the value from form but no result. My form is: <form action="{{ path('show_product_category',{ 'id':category.getId(), 'name':category.getCategoryLink()...
TanGio's user avatar
  • 766
2 votes
0 answers
248 views

I am using Symfony 2.4. After a user registers I need to log him in and automatically and also have the remember me functionality enabled as well along with it. at the moment to login I use the ...
Abdul Mannan's user avatar
1 vote
1 answer
113 views

Can I somehow detect inside the code which version of symfony is currently used? I have a bundle which uses a symfony function that has changed in version 2.4 so I need to detect on which version I ...
Nickolaus's user avatar
  • 4,871
4 votes
2 answers
2k views

I have set the gc_maxlifetime in my config.yml file to 300. But its not working. Symfony2 still takes the value set in php.ini Symfony version is 2.4.4
user2986749's user avatar
2 votes
2 answers
1k views

I'm trying to get the variable of a POST request in a symfony 2.4 controller. I usually have no issues on that but for this one... this is how I call the controller: var deferred = $q.defer(); $...
Eagle1's user avatar
  • 810
3 votes
2 answers
2k views

I'm trying to access app-wide symfony parameters (defined in app/config/parameters.yml) from an expression in a route condition (documentation). I tried my luck inserting the parameter within ...
Phil Thomas's user avatar
  • 1,237
0 votes
2 answers
478 views

I've created a custom loader for my bundle with the purpose of loading different routes per environment. My loader class looks like this: class ApiRouteLoader extends Loader { public function ...
Andrei Dascalu's user avatar
0 votes
1 answer
540 views

I am trying to customize Symfony form label to add an asterisk(*) for all required fields through this Symfony doc. But my asterisk <span has to be inside the <label tag so I had to customize ...
Jeet's user avatar
  • 1,587
1 vote
1 answer
1k views

I have made my own custom FB login function because I need a certain flow that I couldn't achieve with HWIOAuthBundle. Everything works great, except one thing... I don't know how to set remember me ...
J.T.'s user avatar
  • 135
0 votes
3 answers
324 views

I'm having troubles getting related entities in a single query.I used both fetch=Eager and manual query with join.Here are my entities ----------------------Store.php-----------------------------...
user3817718's user avatar
1 vote
0 answers
242 views

I have an unbound form with two fields that i would like to validate. I would like to use the built in NotBlank on both fields and my two custom validators MyFile and *UploadConstraints *. The ...
Alpaccino's user avatar
12 votes
1 answer
3k views

I want to log all changes of an entity. I looked into Loggable doctrine extension as provided by the StofDoctrineExtensionsBundle. I got it working for fields that store simple data, e.g. string and ...
k0pernikus's user avatar
  • 67.6k
4 votes
2 answers
3k views

We've built up a set of data fixtures to seed the database with all our reference values. We are also using the DoctrineMigrationsBundle to manage schema updates. We would like to trigger the ...
Cameron M's user avatar
0 votes
1 answer
101 views

I'm overwriting registerAction() with my own logic as follow: public function saveAction(Request $request) { $em = $this->getDoctrine()->getManager(); /** @var $userManager \FOS\...
ReynierPM's user avatar
  • 18.7k
0 votes
3 answers
753 views

I'm trying to add roles to user when they are registering in this way: $em = $this->getDoctrine()->getManager(); $userManager = $this->container->get('fos_user.user_manager'); $user = $...
ReynierPM's user avatar
  • 18.7k
14 votes
2 answers
26k views

I'm trying to define driverid, using set, as a var in for driver in assigned.driver cycle for use later. See below what I'm doing: {% for key, assigned in pgn %} <tr id="device-{{ assigned.id }...
ReynierPM's user avatar
  • 18.7k
0 votes
1 answer
3k views

I've been learning AngularJS and I'd like to integrate it with my SF2 back end. I'm getting confuse with the routes let's see what I have: When we go onto /usermanager the symfony routing system ...
Eagle1's user avatar
  • 810
0 votes
2 answers
1k views

Like in Codeigniter we do have 'core' folder where we can define our own controller like 'MY_Controller' and can be used to extend all the class to extend from this controller is there any possibility ...
Channaveer Hakari's user avatar
0 votes
1 answer
1k views

I have the next form type in my symfony2.4 project, I use doctrine ORM <?php namespace TFS\RiseBundle\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\...
user3773015's user avatar
1 vote
1 answer
19 views

I'm using Symfony 2.4 with these two bundles. Problem is, that about 1 month ago it works both. Now it causes an exception during loading DataFixtures. It happens, that Doctrine ORM use UPDATE instead ...
PriaBrock's user avatar
0 votes
1 answer
418 views

I have a problem validating User Password in Symfony 2.4. I have a form created with html code inside twig and i am not using form builder because i am submitting the form via ajax. The form is a ...
user3567975's user avatar
4 votes
1 answer
2k views

I'm working on a application that will connect to Intuit Quickbooks API trough theirs REST PHP SDK. In basic PHP I have things working without problem since I load files as follow: require_once('../...
ReynierPM's user avatar
  • 18.7k
0 votes
2 answers
773 views

I'm implementing facebook app in symfony. I used facebook php SDK When I call $me=$facebook->api("/me"); if(isset($me['id'])) $response=$facebook->api("/".$me['id']."/...
stefun's user avatar
  • 1,591