PHP code example of falco442 / cakephp-3-sweet-alert-helper
1. Go to this page and download the library: Download falco442/cakephp-3-sweet-alert-helper library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
falco442 / cakephp-3-sweet-alert-helper example snippets
public function initialize()
{
...
$this->loadHelper('SweetAlertHelper.Form');
$this->loadHelper('SweetAlertHelper.Html');
...
}
...
echo $this->Html->script('SweetAlertHelper.sweetalert2.min');
...
<?= $this->Html->link('home',['action'=>'display','home'],['confirm'=>'Sei proprio sicuro?']);