CodeIgniter Forums
How to include TinyFileManager - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: How to include TinyFileManager (/showthread.php?tid=75266)



How to include TinyFileManager - mohs3n - 01-19-2020

Hi

How can I include TinyFileManager in my Codeigniter project?

URL: https://tinyfilemanager.github.io/docs/


RE: How to include TinyFileManager - jreklund - 01-20-2020

Use the embedding and Class bit.
https://tinyfilemanager.github.io/docs/#line5

But as the controller and view are the same thing. I have know idea of how the owner thinks it should be included in an actual website. Iframe?!


RE: How to include TinyFileManager - mohs3n - 01-21-2020

(01-20-2020, 01:16 PM)jreklund Wrote: Use the embedding and Class bit.
https://tinyfilemanager.github.io/docs/#line5

But as the controller and view are the same thing. I have know idea of how the owner thinks it should be included in an actual website. Iframe?!

That's exactly my point. How am I suppose to use it?!


RE: How to include TinyFileManager - php_rocs - 01-22-2020

@mohs3n,

Are you using this on a page or multiple pages in the web application?


RE: How to include TinyFileManager - mohs3n - 01-23-2020

(01-22-2020, 07:52 AM)php_rocs Wrote: @mohs3n,

Are you using this on a page or multiple pages in the web application?

I want to use it on a single page as file manager in the admin area.


RE: How to include TinyFileManager - includebeer - 01-26-2020

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'