1. $this->success (' New success ', ' user/list '); This is the manual of the writing, but in fact, as if not, jump will be in the current URL after the addition of user/list, do not know if I used the pseudo-static reason,
2. Then I write $this->success (' new Success ', U (' user/list ')), can achieve normal page jump, but for example, I did delete operation to jump to the list page, the previously deleted entries are still in, is the reason for the cache. It won't be refreshed once.
Above two questions, hope answer
Reply content:
1. $this->success (' New success ', ' user/list '); This is the manual of the writing, but in fact, as if not, jump will be in the current URL after the addition of user/list, do not know if I used the pseudo-static reason,
2. Then I write $this->success (' new Success ', U (' user/list ')), can achieve normal page jump, but for example, I did delete operation to jump to the list page, the previously deleted entries are still in, is the reason for the cache. It won't be refreshed once.
Above two questions, hope answer
-
It has nothing to do with your pseudo-static, because you only wrote 2 layers; So I didn't know you were in that module; Let's take the home module as an example; you want to jump home/user/list.
The correct is $this->success (' new success ', '/home/user/list '); but it is not recommended; the correct posture is to use the U function $this->success (' new Success ', U (' home/user/list ' ));
-
If you use $this->error (); It does appear that before you say the deleted entries are still in;
Under normal circumstances $this->success () will not appear what you say, if it is, it may be a cache;