Home >Backend Development >PHP Tutorial >How to display different content on the home page in wex5 when logged in and not logged in

How to display different content on the home page in wex5 when logged in and not logged in

WBOY
WBOYOriginal
2016-07-06 13:53:501354browse

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?

Reply content:

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?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn