Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cakephp 2.7's FlashComponent requires flash elements to be in subdir Elements/Flash. #79

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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