• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to include TinyFileManager

#1
Hi

How can I include TinyFileManager in my Codeigniter project?

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

#2
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?!
Reply

#3
(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?!
Reply

#4
@mohs3n,

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

#5
(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.
Reply

#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'
Test your translation files with Translation Tester
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.