Welcome Guest, Not a member yet? Register   Sign In
Problem with integration with Tiny File Manager
#11

If you say the $CONFIG in the following line
https://github.com/prasathmani/tinyfilem...ger.php#L3
It is not a global variable, but a local variable, because you pass it to view().

> So what should I do to make it work?

You need to make it global by yourself.
Reply
#12

(This post was last modified: 10-06-2023, 12:25 PM by damek2010.)

(10-06-2023, 06:02 AM)kenjis Wrote: If you say the $CONFIG in the following line
https://github.com/prasathmani/tinyfilem...ger.php#L3
It is not a global variable, but a local variable, because you pass it to view().

> So what should I do to make it work?

You need to make it global by yourself.

Everything has already started to load Smile it even displays files, but the functions don't work yet and I don't know why :/
E.g. this "IF" doesn't work for me
PHP Code:
if ((isset($_SESSION[FM_SESSION_ID]['logged'], $auth_users[$_SESSION[FM_SESSION_ID]['logged']]) || !FM_USE_AUTH) && isset($_POST['ajax'], $_POST['token']) && !FM_READONLY) { 

Maybe you know where the problem is? Why doesn't this code work in CodeIgniter4?
Reply
#13

https://github.com/prasathmani/tinyfilem...anager.php
This file is assumed to be used stand alone, not with other framework.
So it seems difficult to integrate it with CI4 or other modern frameworks.
Reply
#14

These are 2 of the File mangers that I have seen the Commuity use.

elFinder

RESPONSIVE filemanager v 9.14.0
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#15

Is there a file manager that I could easily upload as VIEW to CodeIgniter4?
Reply
#16

https://github.com/tattersoftware/codeigniter4-files
Reply




Theme © iAndrew 2016 - Forum software by © MyBB