Пример #1
0
 /**
  * Callback function being called after an action is executed.
  *
  * @param string Name of the action to perform.
  * @param array  An array of arguments to the action.
  *
  * @return void
  */
 function after_filter($action, $args)
 {
     parent::after_filter($action, $args);
     if (Request::isXhr() && !isset($this->response->headers['X-Title']) && PageLayout::hasTitle()) {
         $this->response->add_header('X-Title', PageLayout::getTitle());
     }
     if ($this->with_session) {
         page_close();
     }
 }