Just started to play around with yii 2, there is one area I am not sure about.
I have a website in html that has only a single page with different sections(those new templates where you slide up and down when you click the top nav buttons).
What I did was put the whole one page template in the layout/main.php, created a few models and was hoping to fill up the needed data with a few queries, would this be fine? I have also removed the "$content"
I have divided each section into model and would like to make 1 crud per model which will work out the same.
But I am not sure if this is standard to yii coding.
On a side note, I wrote another post on this), is it normal that whatever ever path you set in the GII generator for the views, all the views get generated in the frontend/web folder.
I am really struggling with this one…I tried to even leave the "view path" input filed empty…no chance, everything I generate view wise goes in that web folder but all my controllers and models are going in the correct backend models and controllers folders.
jacmoe, I tried to put everything in the index.php, it worked, everything shows but there is a problem, my original template was using the whole width of the page, now by putting the template in the index.php, the layout is squashed into a defined width frame, any idea how to get around that with Yii2 please?