Angular2 and Yii2: Project Structure and Architecture

Angular2 and Yii2

How do you start off using Angular2 (or AngularJS) and Yii2 in a single project? What is a solid project structure / architecture that can be used to combine the two while still maintaining good separation of concerns? I will try to outline a basic folder structure and workflow I have used successfully in the past. Project Structure First of all let me show you the final directory structure that I am aiming for. Although I will explain how we get there in the next section, it is good to keep in mind what we are trying to achieve. The entire project is divided into two sections contained …

Continue Reading