コマンドラインが使えない環境でacoテーブルを更新するには、以下のような関数を追加して実行する。
ex. Add new_page on User model. Parent_id is 10,
public function beforeFilter() {
parent::beforeFilter();
$this->Auth->allow('reinitDB');
}
public function reinitDB() {
$this->Acl->Aco->create(array('parent_id' => 10, 'alias' => 'new_page', 'model' => 'User'));
$this->Acl->Aco->save();
echo "all done";
exit;
}
その後、aros_acosテーブルの更新を行う。
このページの
initDB()を実行。