KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.

Using the Amazing SimpleCard example #1536

Open Richb201 opened this topic on on Jul 19 - 8 comments

Richb201 commented on Jul 19

I am using the SimpleCard example unmodified directly from the Documentation. I am getting a display but it is not "cards" (see attached). Please take a look and tell me what needs to added to my setup. I am not worried about the missing database at this time. thx

KoolReport commented on Jul 19

Could you please send the screenshoot from the Browser inspector tool

Richb201 commented on Jul 19

Here are two screenshots.

Richb201 commented on Jul 21

I supplied the screenshots that you asked for. Please tell me how to fix this?

KoolReport commented on Jul 21

Do you add the koolreport\amazing\Theme in your report like following:

class MyReport extends \koolreport\KoolReport
{
    use \koolreport\amazing\Theme;
    ...
}

Richb201 commented on Jul 21

Yes. I have use \koolreport\amazing\SimpleCard; use \koolreport\amazing\Theme; in the top of the MyDashboard.php

Is this is the file you are asking about? Is this what those screenshots imply?

KoolReport commented on Jul 21

Could you please put the "use \koolreport\amazing\Theme" inside the report class, the same like my example or in this documentation

Richb201 commented on Jul 21

From your document cited above:


class MyReport extends \koolreport\KoolReport
{
    use \koolreport\amazing\Theme;
    ...
}

from my MyDashboard.php


class MyDashboard extends \koolreport\KoolReport
{

  use \koolreport\codeigniter\Friendship;
  use \koolreport\amazing\Theme;

  public function settings()
  {

        return array(

Here what I get when I run it. Notice that there are no "cards"?


SimpleCard
The example shows how to use SimpleCard of Amazing Theme

45,000
Page views / month
230
Conversions
$7,500
Revenue
$2,484
Cost
45,000
Page views / month
230
Conversions
$7,500
Revenue
$2,484
Cost
Note: You can show card with value queried from database like below example

David Winterburn commented on Jul 22

Hi Richard,

If it's a 500 error from the server, it's most likely a permission issue. Please make sure the php user on your server/docker has the read permission of your project directory.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None