4
title으로 home.ctp를 apps/views/pages/folder에 두지 않고 기본보기를 어떻게 바꿀 수 있습니까?CakePHP : home.ctp 대신 기본보기 변경하기
을 말하면 기본 홈 페이지에서 /views/other/index.ctp를 표시하도록 할 수 있습니다.
어디에서 코딩을 변경해야합니까? 어떤 파일이 관련되어 있습니까? 감사합니다. 여기에 app/config/routes.php
의 루트 경로를
// app/controllers/other_controller.php
class OtherController extends AppController {
public function index() {
// do something
}
}
및 포인트 :
http://stackoverflow.com/questions/34337525/cakephp-static-pages-without 동적 인 내용을 가진 핵심 요소 – Ricardo