The Pages Controller
CakePHP’s official skeleton app ships with a default controller PagesController.php.This is a simple and optional controller for serving up static content. The home pageyou see after installation is generated using this controller and the viewfile src/Template/Pages/home.ctp. If you make the view filesrc/Template/Pages/about_us.ctp you can access it using the URLhttp://example.com/pages/about_us. You are free to modify the PagesController to meet your needs.
When you “bake” an app using Composer the Pages Controller is created in yoursrc/Controller/ folder.
当前内容版权归 cakephp.org 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 cakephp.org .