PHP code example of 2lenet / dashboard-bundle
1. Go to this page and download the library: Download 2lenet/dashboard-bundle 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/ */
2lenet / dashboard-bundle example snippets
use Tkuska\DashboardBundle\Widgets\AbstractWidget;
public function getCacheKey():string{
return $this->getId() . "_".md5($this->config);
}
public function getCacheTimeout():int {
return 300;
}