chg: [baseurl] exposed as an easy to reach variable in all views

pull/38/head
iglocska 2021-01-13 14:21:25 +01:00
parent 1a6505bf61
commit 7a195aed93
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class AppController extends Controller
Configure::write('DebugKit.panels', ['DebugKit.Packages' => true]);
Configure::write('DebugKit.forceEnable', true);
}
$this->loadComponent('CustomPagination');
/*
* Enable the following component for recommended CakePHP form protection settings.
* see https://book.cakephp.org/4/en/controllers/components/form-protection.html
@ -112,6 +112,7 @@ class AppController extends Controller
$this->set('ajax', $this->request->is('ajax'));
$this->request->getParam('prefix');
$this->set('darkMode', !empty(Configure::read('Cerebrate.dark')));
$this->set('baseurl', empty(Configure::read('baseurl')) ? '' : Configure::read('baseurl'));
}
private function authApiUser(): void