-
Notifications
You must be signed in to change notification settings - Fork 18
Class: Limbs
Saqib Razzaq edited this page Mar 18, 2019
·
5 revisions
Limbs class is responsible for holding some major components like Database, Settings and Twig for global access as well as communication between PHP and HTML.
Intializes required variables and makes ready for other methods
global $database;
$limbs = new Limbs($database);
$limbs->initialize();
Fetch all theme related settings
An array with all theme related settings
$limbs->getThemeSettings();
Displays a page
Page name to be displayed
Parameters to be sent to HTML for accessing via Twig
$limbs->display('video.html', array('total' => 20));
Displays an error page
An array of parameters to be accessed from HTML via Twig
An error message to display on page
$parameters = array();
$limbs->displayErrorPage($parameters, 'You must login before uploading');