App\Modules\System\Controllers\Admin\Settings::index PHP Method

index() public method

public index ( )
    public function index()
    {
        // Load the Options from database.
        $options = array('siteName' => Input::old('siteName', Config::get('app.name')), 'siteSkin' => Input::old('siteSkin', Config::get('app.color_scheme')), 'pretend' => Input::old('pretend', Config::get('mail.pretend')), 'mailDriver' => Input::old('mailDriver', Config::get('mail.driver')), 'mailHost' => Input::old('mailHost', Config::get('mail.host')), 'mailPort' => Input::old('mailPort', Config::get('mail.port')), 'mailFromAddress' => Input::old('mailFromAddress', Config::get('mail.from.address')), 'mailFromName' => Input::old('mailFromName', Config::get('mail.from.name')), 'mailEncryption' => Input::old('mailEncryption', Config::get('mail.encryption')), 'mailUsername' => Input::old('mailUsername', Config::get('mail.username')), 'mailPassword' => Input::old('mailPassword', Config::get('mail.password')));
        return $this->getView()->shares('title', __d('system', 'Settings'))->withOptions($options);
    }