8 Topics
| |
I have the following class that I intend to validate by passing it in the symfony validator. <?php namespace Shop; use Symfony\Component\Validator\Mapping\ClassMetadata; use Symfony\Component\Validator\Constraints as Assert; use Shop\Validation\Constraint as ShopAssert; class Country { /** * * @var int */ public $id; /** * * @var string */ public $name; /** … | |
I would like to send Post Data to a Symfony Controller, but it doesn't work. When I send my data with AJAX, it is sending the POST data, but it is showing red link in the console with no error message or status. Here is my Javascript code: function addprivate(){ … | |
I am new in Symfony2. I am trying to get result from a drop-down using ajax and symfony; I did all the settings as it is which is mentioned in the documentation provided. But I am getting **POST http://localhost/docCMS/web/app_dev.php/getclientaddress/13 500 Internal Server Error** DefaultController.php /** * @Route("/getclientaddress/{id}", name="get_client_address", options={"expose"=true}) * … | |
Hi, I'am working with a web company's ressources management project in symfony2 and angularJs with XAMP,I want to add real time services to my web application,my question is,nodejs is it the right choice for this kind of applications?and what's the utility of angularJS two way data binding in this case … | |
I want to get data from my database table "Client",but I get this result: `[{},{},{}]` this is my code: <?php namespace OP\OPBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use OP\OPBundle\Entity\Client; class ClientAPIController extends Controller { public function indexAction() { $em = $this->getDoctrine()->getManager(); $personne = $em->getRepository('OPOPBundle:Client')->findAll(); // $personne_tab=array(); // $personne_tab['nom']=$personne->getNom(); // $personne_tab['prenom']=$personne->getPrenom(); // $personne_tab['id']=$personne->getId(); $personntojson= … | |
Greetings. I have a bit of situation here. I'm using symfony2 and facebook SDK to set up a web service for my IPhone and Android applications. The problem is that the background work can take quite a while. User is first redirected to facebook login page where he can proceed … | |
Recently I am working on symfony. I have created a simple form and want to submit that form and send respons to user as email. In index i have written as follow: $product=new Product(); $product->setName('rohit'); $product->setPass('rohit'); $form=$this->createFormBuilder($product) ->add('name','text') ->add('pass','password') ->getForm(); $name='rohit'; return $this->render('EnsNewBundle:Email:ind.html.twig', array('form'=>$form->createView(),'name'=>$name)); and when i submit this form … | |
Hi, i writing a small application in php->symfony.In one place i need to define max-height and overflow values in input_auto_complete_tag. please help me.THNAKS in advance |
The End.