Questions tagged [symfony-2.6]

This is the Symfony 2.6.x specific tag. Use it in addition to the symfony2 tag if your question is specific to Symfony 2.6.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.6 version of Symfony, which was released on the 29th November 2014. See the tag for general Symfony 2.x questions.

Living on the edge

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

Useful links

163 questions
0
votes
1 answer

Symfony2 app/console cache:clear throws RuntimeException ($_SESSION is set)

for some reasons I get an error each time I try to execute app/console cache:clear [RuntimeException] Failed to start the session: already started by PHP ($_SESSION is set). Unfortunately I dind' find any useful info. I already checked php -i…
V-Light
  • 3,065
  • 3
  • 25
  • 31
0
votes
1 answer

FOSUserBundle add group not properly insert row to mysql db

i try to enable the group function of fosuserbundle, following the doc which can found at fosuserbundle git RegistrationController: //... // I use the controller action to dump and test // I created the group // $g = new Group('super_admin',…
Vronn So
  • 5
  • 4
0
votes
0 answers

Custom entity data handling in Symfony2 forms

I'm currently implementing notification preferences on a site using Symfony 2.6. The entity that holds the notification preference is as follows: class UserNotification { //... /** * @ORM\Column(type="boolean") */ …
Ryall
  • 12,010
  • 11
  • 53
  • 77
0
votes
1 answer

Issue with new theme field rendering

After installation of the new Symfony2.6 along with the integrated Bootstrao form theme. I now have an issue when rendering Money fields. A picture it probably easier than trying to describe it. The code used to render the field from with-in the…
Doug
  • 1,850
  • 23
  • 50
0
votes
1 answer

Symfony 2.6 now fails to clear clear cache even when permissions are setup correctly

I have recently update my application to use symfony 2.6 and now I am getting errors clearing the dev and prod cache: [RuntimeException] Unable to write in the "/var/www/project/app/../var/cache/pro_" directory or [RuntimeException] Unable to write…
Chase
  • 9,289
  • 5
  • 51
  • 77
0
votes
1 answer

FOSUserBundle access control for admin section allows anonymous users

I'm trying to make the admin section only accessible for admin users using FOSUserBundle. However if I go to the admin url (www.foo.local/app_dev.php/admin) without authentication, it allows me access. In the Symfony debug toolbar it shows Logged in…
rfc1484
  • 9,441
  • 16
  • 72
  • 123
-1
votes
2 answers

Get my clients with only today's appointments

i'm not used to develop with Symfony, I retrieved an old project which has to be improved. Here is my problem : In back-end, I have clients with several appointments (HasMany), or none. In front-end, from my rest api call, I receive the clients…
-1
votes
2 answers

Require a field in symfony2 server side

I have a form in Symfony2 which I am building with buildForm I add constraints like so, $builder ->add('firstName', 'text', [ 'required' => true, 'constraints' => [ new NotBlank(), ], ] ) Everything works…
user3410843
  • 195
  • 3
  • 18
-1
votes
1 answer

I can't submit my form

i want to make Multi Step Form so i create a class form, and a function in the controller, my problem is i can't submit my form i try all is thing : $formTransfertFonds->isValid()…
Amine Harbaoui
  • 1,247
  • 2
  • 17
  • 34
-1
votes
1 answer

How to output 1x1 pixel from base64 using FOSRestBundle

I need to return this: return header('Content-Type: image/png'); echo base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII='); by using FOSRestBundle but I…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
-1
votes
1 answer

How to integrate OpCache with Symfony2?

I am new to symfony. I want to integrate OpCache with symfony2. I have no idea that how can I do this. If have any idea please let me know the steps what should I do.
Rohit
  • 403
  • 3
  • 15
-1
votes
1 answer

Symfony2 routing.yml setting routing_frontend.yml and routing_backend.yml in same directory

im trying to learn symfony2, but the routing make me confuse i have successfully generate both of the bundle and also controller with action i wanna manage all my routing in same place other than putting each routing pattern in each…
user259752
  • 1,065
  • 2
  • 9
  • 24
-3
votes
1 answer

Creating objects using symfony2 CRUD

I get the following exception when creating an object using symfony2 CRUD: [ReflectionException] Class App\CoransBundle\Entity\Coran does not exist What may be the problem?
1 2 3
10
11