Home >Backend Development >PHP Tutorial >How to display different content on the home page in wex5 when logged in and not logged in
There is a homepage that needs to display the login control when the user is not logged in. After logging in, it displays "user information". How should I write this?
My implementation idea is: put both logged in and unlogged controls, then bind bind-visibel, and then control their own display and hiding. But the problem is that when the page is refreshed, all the controls will be displayed, and then some of them will be hidden. what do I do?
There is a homepage that needs to display the login control when the user is not logged in. After logging in, it displays "user information". How should I write this?
My implementation idea is: put both logged in and unlogged controls, then bind bind-visibel, and then control their own display and hiding. But the problem is that when the page is refreshed, all the controls will be displayed, and then some of them will be hidden. what do I do?