Create a new dashboard

To create a new dashboard you must first Install RazorFlow PHP Dashboard Framework. After that, the steps are:

  1. Create a new PHP file yourdashboard.php which is inside your document root (you can change this file to anything).
  2. Add the following code to the dashboard (You can rename MyDashboard to any name you like):
<?php
// Require the RazorFlow php wrapper
require('path/to/razorflow.php');
// You can rename the "MyDashboard" class to anything you want
class MyDashboard extends StandaloneDashboard {
    public function buildDashboard () {
        // Build your dashboard here.
    }
}

$dashboard = new MyDashboard ()
$dashboard->renderStandalone ();
?>
  1. Open yourdashboard.php in your browser.