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

Menadzerplikow_c.php
PHP Code:
<?php
namespace App\Controllers;
use 
CodeIgniter\Controller;
use 
App\Models\Model_m;
use 
App\Models\Menu_m;
use 
App\Models\Player_m;
use 
App\Models\Panel_m;
use 
App\Models\Notatnik_m;
use 
App\Models\Menuedit_m;
use 
App\Models\Profil_m;
use 
App\Models\Ytdownload_m;

class 
Menadzerplikow_c extends Controller {

 
/**
 * Index Page for this controller.
 *
 * Maps to the following URL
 * http://example.com/index.php/welcome
 * - or -
 * http://example.com/index.php/welcome/index
 * - or -
 * Since this controller is set as the default controller in
 * config/routes.php, it's displayed at http://example.com/
 *
 * So any other public methods not prefixed with an underscore will
 * map to /index.php/welcome/<method_name>
 * @see https://codeigniter.com/user_guide/general/urls.html
 */

 
public function index()
 {
 
$session session();
 if(
$session->get('login'))
 {
 
 
define('FM_EMBED'true);
 
define('FM_SELF_URL'$_SERVER['PHP_SELF']);
        
     $id 
$session->get('id');
 
    $imie $session->get('imie');
 
    $ranga $session->get('ranga');
 
$model = new Model_m();
 
$model $model->start();
 
$menu = new Menu_m();
 
$menu $menu->start();
 
//$tresc = $this->gettresc();
 
$player = new Player_m();
 
$player $player->start();
 
$panel = new Panel_m();
 
$panel $panel->start();
 
$notatnik = new Notatnik_m();
 
$notatnik $notatnik->start();
 
$menuedit = new Menuedit_m();
 
    $menuedit $menuedit->start();
            $ytdownload = new Ytdownload_m();
                $ytdownload $ytdownload->start();
            $profil = new Profil_m();
                $profil $profil->start();

 
 
//$this->load->model('temp_m');
 //$temp = $this->temp_m->start();

 
$data = array(
 
    'id' => $id,
 
    'imie' => $imie,
 
'model' => $model,
 
'menu' => $menu,
 
//'tresc' => $tresc,
 
'player' => $player,
 
'panel' => $panel,
 
'notatnik' => $notatnik,
 
'menuedit' => $menuedit,
                'ytdownload' => $ytdownload,
                'profil' => $profil,
                'ranga' => $ranga,
 
//'temp' => $temp,

 
);

 echo 
view('menadzerplikow_v',$data);
 
//require 'menadzerplikow_v.php';
 
}
 else
 {
 
//redirect('logowanie', 'refresh');
 
return redirect()->to(base_url().'login');
 }
 }



menadzerplikow_v.php is from here (copy & paste carefully) (I can't paste here code because it's too long)
https://github.com/prasathmani/tinyfilem...anager.php
Reply


Messages In This Thread
RE: Problem with integration with Tiny File Manager - by damek2010 - 10-04-2023, 05:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB