Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change init directory of the file management #29

Closed
Amamatthew opened this issue Mar 16, 2017 · 4 comments
Closed

Change init directory of the file management #29

Amamatthew opened this issue Mar 16, 2017 · 4 comments

Comments

@Amamatthew
Copy link

If we can specify a folder as the init directory of the file management shows instead of the folder ifm.php located. Because sometimes we calls the ifm.php class file as a third party library in the application system.

@misterunknown
Copy link
Owner

Thanks for your feedback! I already work on this feature, but didn't merge it yet. Please have a look on issue #26. You can see the regarding branch here. Please join the discussion there 😉

@misterunknown
Copy link
Owner

misterunknown commented Mar 16, 2017

You mentioned, that you want to embed the IFM as a third party libarary. Can you give me some more information about that? I recently thought about restructuring the code, so one could embed it directly in another application without hassling with iframes.

@Amamatthew
Copy link
Author

I capture a piece of code,don't know whether it is helpful. Please read below, thank u.
namespace app\admin\controller;

use think\Db;
use file\IFM;
use file\IFMZip;
use file\IFMConfig;
use think\Config;
use think\Request;
use think\Controller;

/**

  • Filemanage Controller

*/
class Filemanage extends Authentication
{

public function actionIndex()
{
	/*
	   start program
	 */
	$ifm = new IFM();
	$ifm->run();
}

@misterunknown
Copy link
Owner

Ah ok. So you don't use an iframe, but start the ifm directly in your script. Thanks for the info :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants