PagesController::admin_entry_page_files PHP Method

admin_entry_page_files() public method

[ADMIN] 固定ページファイルを登録する
public admin_entry_page_files ( ) : void
return void
    public function admin_entry_page_files()
    {
        $this->_checkSubmitToken();
        $pagesPath = APP . 'View' . DS . 'Pages';
        $result = $this->Page->entryPageFiles($pagesPath);
        clearAllCache();
        $this->setMessage($result['all'] . ' ページ中 ' . $result['insert'] . ' ページの新規登録、 ' . $result['update'] . ' ページの更新に成功しました。');
        $this->redirect(array('controller' => 'tools', 'action' => 'index'));
    }