Ejemplo n.º 1
0
 function offline()
 {
     $contacts = new Statique('contacts');
     $legal = new Statique('legal');
     $legal->write($legal->read() . "\n\n" . $contacts->read() . "\n");
     $contacts->delete();
 }
Ejemplo n.º 2
0
 function indexAction()
 {
     $page = $this->_getParam('page');
     if (!$page) {
         throw new Strass_Controller_Action_Exception("Aucune page à afficher");
     }
     $page = new Statique($page);
     if (!$page->readable()) {
         $this->view->wiki = null;
     } else {
         $this->view->wiki = $page->read();
     }
     $this->metas(array('DC.Title' => $page->getTitle()));
     $this->branche->append($page->getTitle());
     $this->actions->append('Éditer', array('action' => 'editer'), array(null, $page));
 }