public function site()
 {
     // auth
     Auth::isAdminAuthorized($this->signedUser, 'admin.config.site', true, '/configuration');
     $site = \Rebond\Core\Site\Data::loadById(1);
     if (!isset($site)) {
         \Rebond\Util\Error::kill(\Rebond\Util\Error::SITE_NOT_FOUND, 'id: 1', __FILE__, __LINE__);
     }
     $siteForm = new \Rebond\Core\Site\Form($site);
     // action
     if (isset($_POST['save'])) {
         Auth::isAdminAuthorized($this->signedUser, 'admin.config.site.edit', true, '/');
         if ($siteForm->setFromPost()->validate()->isValid()) {
             $siteForm->getModel()->save();
             \Rebond\Core\Site\Service::updateIsCms($siteForm->getModel()->getIsCms());
             Session::adminSuccess('saved', '/configuration/site');
         } else {
             Session::set('adminError', $siteForm->getValidation()->getMessage());
         }
     }
     // view
     $this->setTpl();
     // main
     $tplMain = new Template(Template::MODULE, ['core', 'site']);
     $tplMain->set('item', $siteForm);
     // layout
     if (Auth::isAdminAuthorized($this->signedUser, 'admin.config.site.edit', false)) {
         $this->tplLayout->set('column1', $tplMain->render('editor'));
     } else {
         $this->tplLayout->set('column1', $tplMain->render('view'));
     }
     // master
     $this->tplMaster->set('layout', $this->tplLayout->render('layout-1-col'));
     return $this->tplMaster->render('tpl-default');
 }