Вход Регистрация
Файл: concrete5.7.5.6/concrete/controllers/single_page/dashboard/system/basics/name.php
Строк: 30
<?php

namespace ConcreteControllerSinglePageDashboardSystemBasics;
use 
ConcreteCorePageControllerDashboardPageController;
use 
Config;
use 
Loader;

class 
Name extends DashboardPageController {

    public function 
view() {
        
$this->set('site'h(Config::get('concrete.site')));
    }

    public function 
sitename_saved() {
        
$this->set('message't("Your site's name has been saved."));
        
$this->view();
    }

    public function 
update_sitename() {
        if (
$this->token->validate("update_sitename")) {
            if (
$this->isPost()) {
                
Config::save('concrete.site'$this->post('SITE'));
                
$this->redirect('/dashboard/system/basics/name','sitename_saved');
            }
        } else {
            
$this->set('error', array($this->token->getErrorMessage()));
        }
    }


}
Онлайн: 2
Реклама