【CakePHP1.3】_视图约定及命名小结

视图模板文件名称由控制器函数名决定,按下划线的格式。

例:控制器PeopleController中的getReady()将会在/app/View/People/get_ready.ctp.检索视图模板文件

命名小结

例:

• Database table: “people”
• Model class: “Person”, found at /app/Model/Person.php
• Controller class: “PeopleController”, found at /app/Controller/People_Controller.php
• View template, found at /app/View/People/index.ctp


你可能感兴趣的:(视图约定)