How to integrate PHP with yeoman angular project
问题 I'm using yeoman project using angularjs normally I know how to use angularjs with PHP on normal projects. But I'm confused to use php with yeoman. Where should I create .php file and how should I call $http scope in main.js controller? 回答1: If you're using generator-angular, you need two elements: 1/ Have your PHP running as you would normally in a subdirectory like public so public/index.php is loaded when you go to http://localhost/ 2/ Use a Grunt task to compile the individual AngularJS