The example in this article is for showing how to use the extension mechanism of ZenTao to make various customizations to ZenTao without worrying about being overwritten after subsequent upgrades.
Goal: When creating a bug, you can set the priority field directly.
1. Create directory
1.1 Create the directory ext/view under module/bug/.
1.2 Copy "module/bug/view/create.html.php" to the directory ext/view/, still with create.html.php
1.3 Change "ext/view/create.html.php".
2. Change the program
After copying the template over, you need to change the header file and footer file include paths. Then you can change the template file and add the bug priority field in the appropriate place.
Then visit the bug creation page and you will find the priority field.