The following tutorial column will introduce to you about the use of underscores in tp5 camel case naming templates. I hope it will be helpful to friends in need!
Note: If our controller file is named in camel case, you need to use underscores to access the template directory structure, also That is, in "Module/view/Controller/Operation", you need to write the "Controller" directory name in the naming format of "lowercase underscore" in order to access the template file normally.1. Define a class file named in CamelCase2. When accessing the URL, directly enter CamelCase to access it. Then an error is reported 3. Solution: Use underscore mode to access
The above is the detailed content of TP5 camel case naming templates must use underscores!. For more information, please follow other related articles on the PHP Chinese website!