示例#1
0
 public function showSettings($actionID)
 {
     if (!empty($_POST)) {
         Settings::set($actionID, Awecms::removeMetaFromPost($_POST));
         $selections = Awecms::getSelections($_POST);
         if (count($selections)) {
             Settings::delete($actionID, $selections);
         }
     }
     $this->layout = 'main';
     $dataProvider = array('settings' => Settings::get($actionID), 'action' => $actionID);
     $this->render('index', $dataProvider);
 }