PHP aplikace bez Nette, přidání Nette Database do Tracy

pernica@tomp.eu
Člen | 6
+
0
-

Ahoj
Mám PHP aplikaci bez Nette, ale používám Tracy, Nette Database a Latte. Jde do Tracy přidat Nette Database, tak jako v plné Nette aplikaci?

Díky za info.

David Grudl
Nette Core | 8228
+
0
-

Včetně konfigurace v neon souboru nejlépe tímto způsobem https://github.com/…amples/books

pernica@tomp.eu
Člen | 6
+
0
-

Díky, pouštím se do toho, ale nedostanu se přes tuto chybu:

Warning: Undefined array key "install_path" in /volume1/web/is/vendor/nette/bootstrap/src/Bootstrap/Configurator.php on line 177

Call Stack:
    0.0000     364952   1. {main}() /volume1/web/is/is/test3.php:0
    0.0002     368248   2. Nette\Bootstrap\Configurator->__construct() /volume1/web/is/is/test3.php:15
    0.0002     368248   3. Nette\Bootstrap\Configurator->getDefaultParameters() /volume1/web/is/vendor/nette/bootstrap/src/Bootstrap/Configurator.php:74


Fatal error: Uncaught TypeError: Nette\Utils\FileSystem::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /volume1/web/is/vendor/nette/bootstrap/src/Bootstrap/Configurator.php on line 177 and defined in /volume1/web/is/vendor/nette/utils/src/Utils/FileSystem.php on line 281

TypeError: Nette\Utils\FileSystem::normalizePath(): Argument #1 ($path) must be of type string, null given, called in /volume1/web/is/vendor/nette/bootstrap/src/Bootstrap/Configurator.php on line 177 in /volume1/web/is/vendor/nette/utils/src/Utils/FileSystem.php on line 281

Call Stack:
    0.0000     364952   1. {main}() /volume1/web/is/is/test3.php:0
    0.0002     368248   2. Nette\Bootstrap\Configurator->__construct() /volume1/web/is/is/test3.php:15
    0.0002     368248   3. Nette\Bootstrap\Configurator->getDefaultParameters() /volume1/web/is/vendor/nette/bootstrap/src/Bootstrap/Configurator.php:74
    0.0002     369912   4. Nette\Utils\FileSystem::normalizePath($path = NULL) /volume1/web/is/vendor/nette/bootstrap/src/Bootstrap/Configurator.php:177

tohle vrátí null, zřejmě to souvisí s composer.json
InstalledVersions::getRootPackage()[‘install_path’];

{
    "name": "tompeu/is",
    "author": "Tomas Pernica",
    "version": "2.0",
    "require": {
        "php": "8.0 - 8.3",
        "phpoffice/phpword": "^1.1",
        "nette/forms": ">3.0.0",
        "nette/mail": ">2.4",
        "nette/database": ">3.1",
        "latte/latte": ">2.11",
        "tracy/tracy": ">2.9.8",
        "dfridrich/qr-platba": ">1.0",
        "dg/mysql-dump": ">1.5",
        "phpoffice/phpspreadsheet": "^1.29",
        "geoip2/geoip2": "~2.0",
        "nette/utils": "^4.0",
        "nette/neon": "^3.4",
        "nette/bootstrap": "^3.2",
        "nette/application": "^3.2"
    },
    "config": {
        "platform": {
            "php": "8.2"
        }
    },
    "autoload": {
        "classmap": ["vendor/"]
    },
}
Marek Bartoš
Nette Blogger | 1275
+
+2
-

Aktualizuj si Composer

pernica@tomp.eu
Člen | 6
+
0
-

Marek Bartoš napsal(a):

Aktualizuj si Composer

To mě vůbec nenapadlo. Vyřešeno. Děkuji ;-)