Esempio n. 1
0
 /**
  * Register the Alert Container instance
  */
 protected function registerAlertContainer()
 {
     $this->app->bindShared('alert', function ($app) {
         $this->loadConfigurationOptions();
         $alert = new Alert($this->getAlertHandler(), $this->getTheme());
         if ($this->options['translate_texts']) {
             $alert->setLang($app['translator']);
         }
         return $alert;
     });
 }
Esempio n. 2
0
 /**
  * Add an additional view partial to the alert message.
  *
  * @param string $template
  * @param array $data
  * @return \Styde\Html\Alert\Message $this
  */
 public function view($template, $data = array())
 {
     return $this->html($this->container->view($template, $data));
 }
Esempio n. 3
0
 public function render()
 {
     return $this->container->render();
 }
Esempio n. 4
0
 /**
  * Clear and render the alert messages of this and the previous requests.
  *
  * @param string|null $custom
  * @return string 
  * @static 
  */
 public static function render($custom = null)
 {
     return \Styde\Html\Alert\Container::render($custom);
 }