Symfony2 is an open source PHP web development framework for PHP 5.3.3+ focusing on easy and fast development cycles and including state-of-the-art design patterns and programming philosophies.

learn more… | top users | synonyms (1)

0
votes
0answers
2 views

how to organize symfony2 data-fixtures (mandatory/ test data)

in a symfony2 application i have data-fixtures that are mandatory for my application. E.g. a list of countries used all over the application. Other data-fixtures just make development easier. E.g. 20 ...
0
votes
0answers
4 views

How to handle a 1:n relation in smyfony2 forms?

I need for a project translated entities and an easy way to maintain the content. One "myentity" can have many "myentity_trans". This is easy so far, but I need a dynamic form in a easy way without ...
0
votes
0answers
5 views

How to make two controllers work in a Silex project?

I have decided to add a new controller to my Silex application. So I wrote the whole methods (routes, etc..), but I don't know how to make it work. When I put the path of a page, I get the following ...
0
votes
0answers
5 views

SonataAdminBundle field sonata_type_model without new button

I'm using the sonata_type_model of the SonataAdminBundle. I get the dropdown of the other model like I want to. But there is also a "New" Button to create the referenced model. Is it possible to ...
0
votes
1answer
9 views

Symfony2 and Doctrine - @ORM\PostPersist() does not work

I have a file upload function on my Symfony2 project. I used the http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html as example. The problem is that my @ORM\PostPersist() is not ...
0
votes
0answers
8 views

stack at Doctrine PostPersist event listener

its my VisitorController Class public function chooseVisitor($zone) { $em = $this->getDoctrine()->getManager(); $lvisitor = ...
0
votes
0answers
10 views

symfony db and doctrine user structure

I have a site with 2 types of users: searchers and workers. My firewall is on all the site and both of the types are from the the same provider (same table in DB). The problem is that there is one ...
1
vote
1answer
19 views

Class Not found in AppKernel.php

I'm trying to deploy my Symfony2 project. When I run the command php app/console cache:clear --env=prod --no-debug I get the following error: PHP Fatal error: Class ...
0
votes
0answers
16 views

how to get the symfony session object of a specific user?

I am working in a real time Symfony app using Ratchet library, in this app I need to send some data to a specific user so the logic solution was to use the SessionProvider that will attach a Symfony2 ...
0
votes
1answer
14 views

Doctrine OneToMany relationship error

I am trying to set up some ManyToOne/OneToMany relationships on objects in my database using Doctrine (2.2.3+) via Symfony2 (2.3.0) and am getting a strange error. Here are the relevant parts of the ...
0
votes
0answers
11 views

generate sha1 field for entity symfony2

My Entity Card has fields: id, code and token. Two points: 1) I need to generate 'code' with something like this: ... public function __construct(){ $date = new \DateTime(); $year = ...
0
votes
0answers
6 views

Access a bundle (sncRedisBundle) from within an Extension

I have successfully installed the sncRedisBundle and used the predis element of it within a controller, using: $this->container->get('snc_redis.default'); I want to do the same within an ...
0
votes
0answers
5 views

Problems importing .htaccess into IIS URL Rewrite Web.Config

i'm trying to import .htaccess file into the URL rewrite rule in IIS 7. the current file in Symfony 2 fails importing it into IIS. i need the help of someone that knows the syntax to translate the ...
0
votes
0answers
18 views

Symfony 2.x shows broken layout with clean install

I've just installed a Symfony Standard Application from scratch, and the layout is broken: I've already did a bunch of stuff, such as clearing cache, changing directory permissions and etc, and ...
0
votes
0answers
27 views

Symfony2 blank page

Using Symfony2, Doctrine2 and MySQL, I am going through some trouble. Please: I know this question is not an orthodoxly formed Stackoverflow.com five stars question. But I don't think there is a ...

1 2 3 4 5 767
15 30 50 per page