Home  >  Article  >  PHP Framework  >  TP5 camel case naming templates must use underscores!

TP5 camel case naming templates must use underscores!

藏色散人
藏色散人forward
2020-08-05 11:23:173634browse

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

TP5 camel case naming templates must use underscores!

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 CamelCase

2. When accessing the URL, directly enter CamelCase to access it. Then an error is reported

TP5 camel case naming templates must use underscores!

3. Solution: Use underscore mode to access

TP5 camel case naming templates must use underscores!

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!

Statement:
This article is reproduced at:kancloud.cn. If there is any infringement, please contact admin@php.cn delete