Beispiel #1
0
 function privacy()
 {
     $this->output->cache(30);
     //We need to retreive the page content from the DB and parse it
     $Content = new ifx_PageData();
     data('Content', $Content->get(PD_PRIVACY));
     $this->display('page');
 }
Beispiel #2
0
 function edit($Key)
 {
     $PageData = new ifx_PageData();
     if (isset($_POST['value'])) {
         if ($PageData->set($Key, $_POST['value'])) {
             data('info_success', 'Updated');
         } else {
             data('info_errors', 'Couldn\'t save that');
         }
         $this->output->delete_cache('/');
     }
     data('key', $Key);
     data('value', $PageData->get($Key));
     $this->display('pagedata/edit');
 }