Link to home
Start Free TrialLog in
Avatar of Bobby
BobbyFlag for United States of America

asked on

Symfony 2 controller, output a function to JSON response

Total noob here, trying to ramp up knowledge to replace somebody at work who's leaving... In a Symfony 2 controller I am trying to add a public function (a SQL query) from the DB.php file. It will output to a JSON response. The IDE shows an error, which I'm sure is because I don't have all the needed info in there. What else do I need? Please see attached pic.
2018-08-11_15-04-11.jpg
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial