Welcome Guest, Not a member yet? Register   Sign In
How to include TinyFileManager
#6

Did you try this example code in the Embedding section on https://tinyfilemanager.github.io/docs/ ?
You can use the first example in a CI controller or the second one in a view.

PHP Code:
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

PHP Code:
define('FM_EMBED'true);
define('FM_SELF_URL'$_SERVER['PHP_SELF']);
require 
'path/tinyfilemanager.php'
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
How to include TinyFileManager - by mohs3n - 01-19-2020, 10:43 PM
RE: How to include TinyFileManager - by jreklund - 01-20-2020, 01:16 PM
RE: How to include TinyFileManager - by mohs3n - 01-21-2020, 11:25 PM
RE: How to include TinyFileManager - by php_rocs - 01-22-2020, 07:52 AM
RE: How to include TinyFileManager - by mohs3n - 01-23-2020, 08:15 AM
RE: How to include TinyFileManager - by includebeer - 01-26-2020, 07:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB