PHPackages                             ballstatecber/datacenter-plugin-cakephp4 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ballstatecber/datacenter-plugin-cakephp4

ActiveCakephp-plugin

ballstatecber/datacenter-plugin-cakephp4
========================================

Ball State CBER DataCenter plugin for CakePHP 4

0230JavaScript

Since Apr 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/BallStateCBER/datacenter-plugin-cakephp4)[ Packagist](https://packagist.org/packages/ballstatecber/datacenter-plugin-cakephp4)[ RSS](/packages/ballstatecber-datacenter-plugin-cakephp4/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Ball State CBER DataCenter plugin for CakePHP 4
===============================================

[](#ball-state-cber-datacenter-plugin-for-cakephp-4)

Installation
------------

[](#installation)

- Install this plugin in your CakePHP application using [composer](http://getcomposer.org).

    ```
    composer require ballstatecber/datacenter-plugin-cakephp4:dev-master

    ```
- Add `$this->addPlugin('DataCenter');` in `App\Application:bootstrap()`
- Have `AppController` extend `DataCenter\Controller\AppController`

Configuration
-------------

[](#configuration)

- Copy the plugin's `config/datacenter.php` configuration file to the application's `config` directory
- Set `'DataCenter.siteTitle'` and `'DataCenter.siteUrl'` in the copy
- Change other values as appropriate
- Comment out or remove lines in this file to fall back on the plugin's default configuration values

View layer
----------

[](#view-layer)

### Page title

[](#page-title)

- Set `$pageTitle` in each action's view variables where you would like to prepend the site title with the page title and display it as a header.
- Set the `$hidePageTitle` view variable to `true` to only put the title in `` and prevent it from being displayed.
- Set `$linkPageTitle` to `true` to link the page title to the current page.

### Layout

[](#layout)

Replace `templates/layout/default.php` with the following:

```
