mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-01-13 10:52:07 +01:00
1
Embedding
Prasath Mani edited this page 2020-01-01 18:33:26 +05:30
Include file manager in another script. Just define FM_EMBED and other necessary constants.
class SomeController
{
public function actionIndex()
{
define('FM_EMBED', true);
define('FM_SELF_URL', UrlHelper::currentUrl()); // must be set if URL to manager not equal PHP_SELF
require 'path/to/tinyfilemanager.php';
}
}
OR
define('FM_EMBED', true);
define('FM_SELF_URL', $_SERVER['PHP_SELF']);
require 'path/tinyfilemanager.php';