Skip to content

Conversation

@huhwatnou
Copy link

Needed to make e.g. the AuthComponent example with Cakephp 2.7

@wvdongen
Copy link
Contributor

@slywalker please merge this

@wvdongen
Copy link
Contributor

One small addition to this merge request. In order for this to properly work with Cake 2.7 the following should be added to the top of alert.ctp:

if (isset($params['class'])) {
    $class = $params['class'];
}

Usage example in Cake 2.7:

$this->Flash->alert('Alert message', [
  'plugin' => 'BoostCake',
  'params' => ['class' => 'alert-success'],
]);

kim-dongit and others added 3 commits April 26, 2016 15:48
Use FlashComponent::alert() in examples as SessionComponent::setFlash() is deprecated since cakephp 2.7 and the SessionComponent does not exist since cakephp 3.0.0.
@huhwatnou
Copy link
Author

Hi Slywalker, would you please merge these changes so that the plugin can be used with CakePHP >=3.0.0 and safely used with >=2.7?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants