Cake 2.3.5 の autorender ビューを変更する方法はありますか?
メインの Controller ディレクトリのサブフォルダーでビューをレンダリングしたいのですが、例を次に示します。
class AdministrationController extends AppController {
public function products(){
$this->render('/Administration/products/index');
}
}
ビューを次のように整理されたサブフォルダーに保存したいと思います。
- Administration
- products
- index.ctp
- edit.ctp
$this->render()
私の質問は次のとおりです。すべてのアクションで使用する必要がないように、これを作り直す方法はありますか?