I want an object in my partial. I want to use object variables and functions in the partial. Is it possible to pass an object in include_partial() function? Or how can I access the object in partial? I dont want to set the object in symfony request.
I'm currently working on a little shop that only supports payment via PayPal ExpressCheckout. I'm using the JMSPaymentCoreBundle and the JMSPaymentPayPalBundle from here: http://jmsyst.com/bundles/. Everything works fine but I followed the documentation and used the form that comes[...]
i'm trying to create an custom security Bundle. I could manage to have something working (long and hard :-) ). Except that when I have an authentication error somewhere, i'd like to be rerouted to a "logout" page and not the login one. I thought changing the security.yml this wa[...]
Lets say I want to create an XML-response that will looks something like the following: <?xml version="1.0" encoding="utf‐8"?> <product xmlns="urn:com.acme.prods" xmlns:atom="http://www.w3.org/2005/xlink"> <id>1234</id> <name>Red Stapler</name&[...]
I am trying this example from the doc: Streaming a Response in Symfony2. /** * @param Request $request * @return Response $render * @Route("/streamedResponse", name="streamed_response") * @Template("AcmeTestBundle::streamedResponse.html.twig") */ public function streamedRespo[...]
I have seen the other errors about this problem. I have done the exact same thing. When I try to render the menu I get this Fatal error: Fatal error: Call to undefined method Knp\Menu\MenuItem::setCurrentUri() in ProjectBundle/Menu/Builder.php on line 23 This is how my Builder l[...]
I have the following action: public function executeGpletter(sfWebRequest $request) { $this->getResponse()->setHttpHeader('Content-Type', 'Content-type: application/vnd.ms-word; charset=utf-8'); $this->getResponse()->setHttpHeader('Content-[...]
Hello I have small problem. I've never done form validator in sf2 so I don't know where I should start. I have one field 'username' and it is unique in database so how can I try it? My Code : -> ENTITY /** * @var string $nick_allegro * * @ORM\Column(name="nick_allegro", type[...]
I try to create a Symfony2 project with composer on Ubuntu with command : php composer.phar create-project symfony/framework-standard-edition projectpath And I get this error Installing symfony/framework-standard-edition (dev-master 506ffaab8d8474db2512fca879ca4b9877616a1e) [...]
I followed the tutorial for ckWebService and I have followed this action: /** * An action multiplying two numbers. * * @WSMethod(webservice='wsFac') * * @param double $a Factor A * @param double $b Factor B * * @return double The result */ public funct[...]