Exemplo n.º 1
0
 function afterroute()
 {
     // Render HTML layout
     if (!empty($this->layout)) {
         echo \Template::instance()->render($this->layout . '.html', $this->mime);
     }
     if ($this->clear_messages_after) {
         \helpers\Msg::clear();
     }
 }
Exemplo n.º 2
0
 static function init()
 {
     $f3 = \Base::instance();
     if (!$f3->exists('SESSION.messages') || $f3->exists('SESSION.clear_messages') && $f3->get('SESSION.clear_messages') == true) {
         \helpers\Msg::clear();
         $f3->set('SESSION.clear_messages', false);
     }
     if (!$f3->exists('MESSAGES') || $f3->exists('SESSION.clear_messages') && $f3->get('SESSION.clear_messages') == true) {
         \helpers\Msg::clear('MESSAGES');
     }
 }