Plupload – Class ‚Echo511\Plupload\Rooftop‘ not found

Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
drick
Člen | 61
+
0
-

Ahojte, snazim sa rozbehat https://componette.org/search/?… .

Do config.neon som pridal do extensions:

	plupload: Echo511\Plupload\DI\PluploadExtension

Mam v presentery nasledovny kod, ktory som ziskal z navodu:

 public function createComponentPlupload()
{
    // Main object
    $uploader = new \Echo511\Plupload\Rooftop();

    // Use magic for loading Js and Css?
    // $uploader->disableMagic();

    // Configuring paths
    $uploader->setWwwDir(WWW_DIR) // Full path to your frontend directory
             ->setBasePath($this->template->basePath) // BasePath provided by Nette
             ->setTempLibsDir(WWW_DIR . '/plupload511/test'); // Full path to the location of plupload libs (js, css)

    // Configuring plupload
    $uploader->createSettings()
             ->setRuntimes(array('html5')) // Available: gears, flash, silverlight, browserplus, html5
             ->setMaxFileSize('1000mb')
             ->setMaxChunkSize('1mb'); // What is chunk you can find here: http://www.plupload.com/documentation.php

    // Configuring uploader
    $uploader->createUploader()
             ->setTempUploadsDir(WWW_DIR . '/plupload511/tempDir') // Where should be placed temporaly files
             ->setToken("ahoj") // Resolves file names collisions in temp directory
             ->setOnSuccess(array($this, 'tests')); // Callback when upload is successful: returns Nette\Http\FileUpload

    return $uploader->getComponent();
}

Dostavam vsak chybovu hlasku

Class ‚Echo511\Plupload\Rooftop‘ not found

Triedu Rooftop som pritom nikde v projekte nenasiel. Viete mi povedat kde je chyba?

Editoval drick (26. 3. 2016 11:42)

Václav Kraus
Člen | 77
+
0
-

Instaloval jsi to composerem? Pokud ne, tak to dej někam, kde to uvidí robot-loader

drick
Člen | 61
+
0
-

Václav Kraus napsal(a):

Instaloval jsi to composerem? Pokud ne, tak to dej někam, kde to uvidí robot-loader

Diky za tip, ale ano instaloval som to composerom, takze tam by nemal byt problem.