PHP code example of chomenko / confirm
1. Go to this page and download the library: Download chomenko/confirm 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/ */
chomenko / confirm example snippets
//Your Presenter or Component
use Chomenko\Confirm\Confirm;
/**
* @Confirm(
* question="You really want to delete this user?",
* type=Confirm::TYPE_DANGER
* )
*
* @param int $userId
* @throws \Nette\Application\AbortException
*/
public function handleRemoveUser(int $userId)
{
//....
}