symfony-2.4 Questions

5

Solved

I'm trying to build app based on REST api ang AngularJS. I've been following this tutorial http://npmasters.com/2012/11/25/Symfony2-Rest-FOSRestBundle.html but have to change some details ( depreci...
Heim asked 11/4, 2014 at 17:24

6

Solved

UserType Form: class UserType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('email', 'email', ['label' => 'EMail']); // various other fields....
Dong asked 25/2, 2014 at 12:52

2

Solved

I am searching for an easy way to add a bundle of fields to each form. I have found a way to extend the AbstractType and use the buildForm method to add more fields. When creating the form I give ...
Dextro asked 14/3, 2014 at 19:32

7

Solved

I'm using FOSElasticaBundle and Doctrine in my project, and my code works for the selective index update using the Doctrine lifecycle events. The issue I come up against is if I an update a related...
Firedamp asked 20/2, 2014 at 13:48

2

Solved

I am trying to implement a simple login page for my usermanagementbundle and I'm new in creating a form thru formbuilder. There is only 3 function inside my bundle where there is a new session and ...
Vanettavang asked 22/1, 2014 at 6:47

1

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 a...

1

i am trying to prevent redirect to login page when user is trying to access a page without token, i have single page app and i am only putting the ajax requests under firewall and when a user is do...
Goalie asked 27/6, 2015 at 21:52

3

Solved

Recently I moved a Symfony-system to another Server and got an error ever since. The technical details are: An apache 2.4 server on a windows server 2012 A fileserver which can be accessed by apach...
Admass asked 3/3, 2015 at 16:4

1

I just installed both Symfony2.4.4 and Symfony2.5.1 and set up a hello world page + some basic things I use (assetic js/css management etc). Configuration and setup for both projects are exactly th...
Boa asked 9/7, 2014 at 6:26

2

Solved

I need to redirect everyone to route /login if: Access to / route (app.php or app_dev.php) Try to access any restricted area and the client belongs to group or have the right credentials but it's...
Courageous asked 15/7, 2014 at 19:50

2

Solved

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 ...
Repertoire asked 15/7, 2014 at 12:43

1

Solved

I like most people are trying to override the FOSUserBundle roles so I can map them ManyToMany to a Role Entity. Unfortunately for some reason due to the mapping of the Model/User I get the follow...
Willetta asked 28/3, 2014 at 16:45

1

Solved

I have a entity mapped to a form, but I don't want to have all fields editable, but still want to show the value. For example this is my form type: class GameHasPlayerType extends AbstractType { ...
Delius asked 26/5, 2014 at 11:2

1

Solved

I created a custom form type like this: class PositioningFlashType extends AbstractType { public function setDefaultOptions(OptionsResolverInterface $resolver) { $resolver->setDefaults(a...
Cutcheon asked 23/5, 2014 at 14:57

1

Solved

1.) The Situation (simplified) I have two entities: a Container-entity, which has exactly 1 Content-entity. The content_id is stored in the Container-entity. 2.) Soft-Delete Content-entities I i...

2

Solved

I have entity 'Action' with relation to 'User'. Created Admin CRUD controller in SonataAdminBundle. Everything works fine except user filter is rendered as dropdown list. I have 8k user count and g...
Coextend asked 8/4, 2014 at 8:55

2

Solved

Here is a question I've been breaking my head over for a while now. Please know that I'm not a Symfony2 expert (yet), so I might have made a rookie mistake somewhere. Field1: Standard Symfony2 te...
Pruritus asked 31/1, 2014 at 17:39
1

© 2022 - 2024 — McMap. All rights reserved.