I bought several sets of background templates at https://wrapbootstrap.com/ and looked at the structure. They were either ajax-based or purely static.
My project uses yii2
, so there is no problem with integrating templates. At first, I wanted to use ajax to load the main part of the page, but I found that it was very difficult to turn pages and submit forms. Later, it was changed to a pure static layout, and the world became quieter. However, when the page was switched back and forth, the screen returned to a white screen, which was the white page jump.
In the past, I always used an iframe to wrap the main. Submit within the main, ajax has all kinds of pressure-free, prompt information, jumps and so on. Now with ajax/html and other methods, even if I submit ajax, it is still inconvenient to jump to prompts and so on.
How did you do it?
I bought several sets of background templates at https://wrapbootstrap.com/ and looked at the structure. They were either ajax-based or purely static.
My project uses yii2
, so there is no problem with integrating templates. At first, I wanted to use ajax to load the main part of the page, but I found that it was very slow when turning pages and submitting forms. Later, it was changed to a pure static layout, and the world became quieter. However, when the page was switched back and forth, the screen returned to a white screen, which was the white page jump.
In the past, I always used an iframe to wrap the main. Submit within the main, ajax has all kinds of pressure-free, prompt information, jumps and so on. Now with ajax/html and other methods, even if I submit ajax, it is still inconvenient to jump to prompts and so on.
How did you do it?
Isn’t it easy to set up a wrapbootstrap template for yii2?
I am also using yii2
Use Ajax, iframe is not safe.
How to access the backend convenientlyStrong
For form submission, you can use iframe to accept the data returned from the background. You can try it. Pay attention to cross-domain homology issues
Whatever is convenient...but in most cases I still use ajax