All talks > Talks tagged with request

 
 
Symfony 2 Controller Test without virtualhost

How can I run a controller test without virtualhost on symfony 2? My project is under web root "http://localhost/Symfony/web/" public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/home'); $this->assertTrue($client-&[...]

Symfony2 Undefined Index Parent when rendering a Form

Symfony 2.1 Beta 4 When I am rendering my form in my twig template, if I try to use form_widget or form_rest, I will receive this error - "An exception has been thrown during the rendering of a template ("Notice: Undefined index: parent in MySite/vendor/symfony/symfony/src/Symfon[...]

Symfony Forms w/ slug on submit

Hello stackoverflow! I've been working on a php website/system that needs slugged urls (for displaying object pages). I discovered an issue with this though. When using forms the 'feedback' can not again find the same object upon submit (it 404s). The page works just fine the firs[...]

403 Error page not showing in Symfony

I am using Symfony 1.4 for onr of my project and it is needed to show a custom 403 error page. I have given the following in settings.yml .actions: error_404_module: errors error_404_action: error404 error_500_module: errors error_500_action: error500 error_40[...]

Symfony2 bundles with same routing

I have two bundles in sf2, each have a same rout. example: /blog Bundle A user_blog: pattern: /blog defaults: { _controller: UserBlogBundle:Default:blog } Bundle B team_blog: pattern: /blog defaults: { _controller: TeamBlogBundle:Default:blog } and with a ses[...]

How to pass variable objects to multiple javascript popup forms

This is my first serious foray into javascript/ajax. Overview: I have an index page listing multiple records, each on different rows. For each record I have a link which pops open a small javascript window which contains a symfony form. All goes well, with the exception that I c[...]

How to implement a search filter form with Symfony2

I have a list of items to display on a page, with a search form above it to filter these items, like in any usual backend. The problem is that I don't know how to add the search criteria to an existing query with joins... Here's what I have: I use a specific method on the reposit[...]

Form tampering and CSRF token in a Symfony 2 multi tenant application

In my project an User can create a Customer and assigning it zero or more Tag. These entities have a relation with User of course. This is done by a form that has a tag field of entity type, filtered by current logged user: $user = $this->securityContext->getToken()->getU[...]

General Symfony 2 discussion • sonata: You have requested a non-existent service “”

Hi,I'm getting this error when I try to request to list object in sonata:You have requested a non-e[...]

Bug with collection of entities in Symfony 2.1

I want to add a collection of entities in Symfony 2.1.0-dev bug I got: Neither property "sitterDegrees" nor method "getSitterDegrees()" nor method "isSitterDegrees()" exists in class "xxx\Entity\Degrees" It happen because I have an entity in DegreesFormType.php and at this line [...]

 
 
 
 
Want to support this service?