Home > other >  filter
filter

Time:11-20

Global filtering steps to implement the MVC project:
Step one: new classes hold global filter

Step 2: write a global filter content
2-1: the new class writing global filter

2-2: new class inherits the filter characteristic

2-3: new methods in the class (method content filtering code)

2-4: write filtering code (URL, for example: when the background to execute a method, will jump to the filter, get the user's access URL to judge (achieve filtering))

Step 3: apply global filter registration to all areas
3-1: add this filter the entrance of the project area

Registered global filter:
1. New classes hold filter
2. Write the filter content
3. The filter will be registered to MVC's own system files