2 Topics
|
|
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= … |
The End.