M
M
Mikhail Shatilov2014-10-01 01:00:16
Yii
Mikhail Shatilov, 2014-10-01 01:00:16

What is the structure of yii2 application?

In the console I executed (windows):

php composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta2"
, the advanced application has been created.
I'm going to put the .htaccess file in the root:
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule ^admin$ /advanced/backend/web/ [L,PT]
  RewriteRule ^admin/(.*)?$ /advanced/backend/web/$1 [L,PT]
  RewriteRule ^([^/].*)?$ /advanced/frontend/web/$1
</IfModule>

1) Is it right to do this, or is it a crutch?
2) For example, I want to connect angularjs, in which folders should I put it?
ps In yii2 & composer a complete layman.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-10-01
@iproger

In yii2 & composer a complete layman.

So why did you get into the advanced template? Master yii2 (routing, DI, the main architectural points related to application bootstrapping in short) and there already pervert.
angularjs ideally wants to see restapi. And ideally, he lies to himself separately, knowing nothing about Yii and the backend. It's just html + js figuratively. Next come optimizations that, without knowing either Yii or angularjs, you should not do just like that.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question