示例#1
0
 /**
  * Set root title (first node name)
  *
  * @param $value string.
  * @return void
  */
 public function validatePost()
 {
     request::load();
     $this->setValue('appTitle', (string) request::get('appTitle'))->blank($this->locale->error->blank->replace('__name', 'Application Title'));
     return $this->isPass();
 }
示例#2
0
 public function __construct()
 {
     $this->locale = \bootstrap::getInstance('locale');
     request::load();
 }
 public function __construct($view, $model, $locale, $conf)
 {
     request::load();
     session::load();
 }