Answer the question
In order to leave comments, you need to log in
How to transfer an existing site to the yii2 library?
I had a question, how to transfer everything from an existing site to yii2. You must initially transfer it to the frotend / web / folder, or you can only specify links to what and where. Or is there some simplest way, like with bootstrap, you specify only in one place in html and all bootstrap is connected, or is this impossible here?
Answer the question
In order to leave comments, you need to log in
Good afternoon.
You can transfer, the appearance is generally without problems.
You only need to understand the yii2 framework structure.
All css, js are placed in the web/assetss folder, design images in the web, it is better to allocate a separate directory for this. css, js files are connected through the AppAssets. How to do this read here .
See how the output of static pages is arranged in the framework - index, about, contact. Using these examples, you can implement your pages. More details here .
To connect the database, read the official documentation, I have already given links.
Here is another good blog .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question