Example #1
0
 /**
  * Redirects the user by passing a meta script back to the page
  * @param string $url Where to redirect to
  * @param int $wait How long to wait before redirecting to
  * @return string The meta string
  */
 function meta($url, $wait = 0)
 {
     # If the meta redirect snippet does not exist, redirect using basic
     # method
     if (!file_exists('snippets/redirect/meta')) {
         $this->basic($url);
     }
     return Bootstart::view('snippets/redirect/meta', ['wait' => $wait, 'url' => $url]);
 }
Example #2
0
 /**
  * @return bool True if user is authenticated, false if not
  */
 public function message()
 {
     $message = '';
     if (Bootstart::registry('session')->has('flash_type')) {
         $message = Bootstart::view('feedback/alert', ['type' => Bootstart::registry('session')->get('flash_type'), 'message' => Bootstart::registry('session')->get('flash_message')]);
         # Clear the session variable so that the message does not show again
         Bootstart::registry('session')->clear('flash_type');
         Bootstart::registry('session')->clear('flash_message');
     }
     return $message;
 }