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.
1
vote
0answers
3 views
FOSMessageBundle - How to send a message without the field form recipient
I've hide my recipient field form and now I would like to understand where in the controller I can tell the value of the recipient
MessageController :
/**
* Create a new message thread
*
* ...
3
votes
0answers
12 views
How to Create a SOAP Web Service in a Symfony2?
i am newbie to symfony2 and i need to create a web services with symfony2 i have read the official article in the example it creates a instance of SoapServer with a parameter routing a .wsdl file. i ...
0
votes
0answers
9 views
Symfony 2 Entity Relationships
Using symfony 2 I have a users, who can have many notebooks whilst a notebook can have many notes.
Now I want to display all 'public' notes for the current logged in user who I get by doing $user = ...
0
votes
0answers
10 views
Symfony2 - 2 entities in 1 form
Here's the case, a forum system with 3 main Entities:
Forum
Thread
Post
When you are creating a new Thread, the form should provide you basically with 2 fields:
Thread Name
Text area for ...
0
votes
0answers
9 views
Does Doctrine (with Symfony2) do all my indexing for me?
This may seem an obvious question, but I don't know the answer, and I can't find anything on Google or in the Doctrine manual.
Does Symfony2 / Doctrine automatically create indexes? I use the ...
2
votes
0answers
28 views
XSS Basic Understanding
I'm using Symfony2 / Twig / Doctrine
I'm looking at security on my site and in particular preventing XSS attacks, but I can't see what more I can do.
(1) Persistent:
I use Doctrine and always ...
1
vote
2answers
27 views
Entity relationship
I'm working on a symfony 2 project and wondered about the correct relationship of my entities.
I have users who can own many notebooks and a notebook can contain many notes.
A notebook is tied to a ...
0
votes
0answers
11 views
Sylius Best Practice for changing translation texts
What is the "best practice" for changing text in sylius? More details below.
I'm a beginner to symfony2 and sylius. I've been searching for documentation on this, so if it exist, please direct me ...
0
votes
0answers
15 views
Twig rendering into JSON object
I have a twig template that I want to render, store in JSON object, and return as a response to a post request.
$response = json_decode('{"version":1,"status":"success"}', true);
$html = ...
0
votes
1answer
11 views
Symfony 2 multiple bundles annotation type routing
I have a Symfony 2.3.1 application with two bundles. Each bundle contains Resources/config/routing.yml configuration file:
mobile:
resource: "@MyMobileBundle/Controller"
type: annotation
...
0
votes
1answer
10 views
cap deploy:cleanup fails with use_sudo=true
My capifony deployment works great, however the capifony cleanup command fails.
I'm using private keys over ssh, with sudo to gain write permissions on the deployment directories.
With extended ...
1
vote
0answers
8 views
How to sort translatable data in sonata admin using knplabs doctrine behavior
I'm looking for the good way to use KnplabsDoctrineBehaviors with SonataAdmin.
I have already render a form in sonata admin bundle with the help of this bundle : ...
0
votes
0answers
17 views
Objects return null with DotrineFixturesBundle
I'm working with Symfony2 2.3 and I need sharing data between two entities trough the DotrineFixturesBundle
But the Sharing Objects between Fixtures dont work.
When the command is executed
php ...
0
votes
1answer
18 views
Bad credentials with Fosuser symfony2
I'm trying since 3 hours to install and configure FOSuser, which many developpers adviced me to use it.I wanted actually to make a normal login form without to use FOS but I had a lot of problems.I ...
0
votes
3answers
36 views
Twig: render Symfony2 controllers which extend blocks in the parent template
Say I'm having a base template like this:
// Default/index.html.twig
{% block javascripts %}
<script>//some script</script>
{% endblock %}
<div>
{{ ...