G
G
German Jet2017-04-07 12:29:15
Yii
German Jet, 2017-04-07 12:29:15

What should be the file structure of a site in Yii2 and AngularJS?

There is a small site on Yii2, basic template.
I want to make one of the sections (one controller) using Angular
1.x. partly there will be a regular site, partly api.
Where do the Angular files go in this case?
If the site is completely made as api, I know that it is easier to spread the backend and the client over different domains.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-04-07
@webinar

Depends on where you plan to run Angular.
For example, a folder somepage which lies in the root of the public folder of the site.
You don't need Angular to run via yii. yii just how the api will receive requests from Angular to process, do something and return.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question