function offline() { $contacts = new Statique('contacts'); $legal = new Statique('legal'); $legal->write($legal->read() . "\n\n" . $contacts->read() . "\n"); $contacts->delete(); }
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)); }