Dear Team, Cloud you please provide some befits and particle example on platesPHP because I am not getting an clear idea on platesphp.
And when I am implementing the example of platesPHP I am getting stuck with an error cloud please provide a solutions.
Code
<?php
require_once "vendor/koolreport/core/autoload.php";
class demoreport extends \koolreport\KoolReport
{
use \koolreport\platesphp\Engine;
protected function connection()
{
return [
"connectionString"=>"mysql:host=". $_SESSION['sqlHost'] .";dbname=". $_SESSION['c_db'] ."",
"username"=>$_SESSION['sqlUserName'],
"password"=>$_SESSION['sqlPassword'],
"charset"=>"utf8"
];
}
protected function platesInit()
{
return League\Plates\Engine::create(dirname(__FILE__).'/../views');
}
}
error
Fatal error: Trait 'koolreport\platesphp\Engine' not found in C:\xampp\htdocs\crmapp\pages\demoreport.php on line 5