Search Posts

Category: symfony

Nothing adding in list display and database symfony/angular js

When I add my form (angularjs) nothing in list display and database MySQL I don’t know what’s wrong.Is someone know the problem? User.controller(symfony) namespace AppBundleControllerApi; use AppBundleEntityUser; use SymfonyBundleFrameworkBundleControllerController; use SensioBundleFrameworkExtraBundleConfigurationMethod; use SensioBundleFrameworkExtraBundleConfigurationRoute; use SymfonyComponentHttpFoundationRequest; use SymfonyComponentHttpFoundationResponse; use AppBundleServiceValidate; use SymfonyComponentHttpFoundationJsonResponse; use NelmioApiDocBundleAnnotationApiDoc; class UserController extends Controller { /** * @ApiDoc( * resource=true, * description=”Get the list users”, * section=”users” * ) * * @Route(“/api/users”,name=”list_users”) * @Method({“GET”}) */ public function listUser() { $users=$this->getDoctrine()->getRepository(‘AppBundle:User’)->findAll(); if (!count($users)){ […]

Angular and symfony in one dir – htaccess

I have following problem, I have in folder /var/www/html 2 dirs: app (angular application) and api(restful api and cms written in symfony3). In both directories there is appropriate htaccess for each application. The document root is /var/www/html and I need the website to be redirected to app/index.html, and only /api/ to api subfolder. But I can’t get this working with symfony htaccess. Angular htaccess is default provided. Symfony htaccess: DirectoryIndex app.php <IfModule mod_rewrite.c> RewriteEngine On […]

RESTFUL App in symfony 3

I am still quite confused about REST API, Angular and so on. I would like to build simple web app which allows users to book events and I would like to do it in Symfony 3 + Angular. In future, I could make it work on mobile phones as well. The reason I want to do it is to learn symphony 3, REST API and Angular better and to increase chance I will get hired. […]