# |
Jun 25th 2021, 10:33 |
staccato123 |
( |
# |
Jun 25th 2021, 10:32 |
staccato123 |
[args] => Array |
# |
Jun 25th 2021, 10:32 |
staccato123 |
[type] => :: |
# |
Jun 25th 2021, 10:32 |
staccato123 |
[class] => Laminas\ZendFrameworkBridge\Autoloader |
# |
Jun 25th 2021, 10:32 |
staccato123 |
[function] => getClassLoader |
# |
Jun 25th 2021, 10:32 |
staccato123 |
[line] => 53 |
# |
Jun 25th 2021, 10:32 |
staccato123 |
[file] => /path/to/application/app/vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php |
# |
Jun 25th 2021, 10:32 |
staccato123 |
( |
# |
Jun 25th 2021, 10:32 |
staccato123 |
[1] => Array |
# |
Jun 25th 2021, 10:32 |
staccato123 |
) |
# |
Jun 25th 2021, 10:32 |
staccato123 |
[function] => include |
# |
Jun 25th 2021, 10:32 |
staccato123 |
[line] => 74 |
# |
Jun 25th 2021, 10:32 |
staccato123 |
[file] => /path/to/application/app/vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php |
# |
Jun 25th 2021, 10:32 |
staccato123 |
( |
# |
Jun 25th 2021, 10:32 |
staccato123 |
[0] => Array |
# |
Jun 25th 2021, 10:32 |
staccato123 |
( |
# |
Jun 25th 2021, 10:32 |
staccato123 |
wibbleArray |
# |
Jun 25th 2021, 10:32 |
staccato123 |
and the second: |
# |
Jun 25th 2021, 10:31 |
staccato123 |
) |
# |
Jun 25th 2021, 10:31 |
staccato123 |
) |
# |
Jun 25th 2021, 10:31 |
staccato123 |
[function] => require |
# |
Jun 25th 2021, 10:31 |
staccato123 |
[line] => 5 |
# |
Jun 25th 2021, 10:31 |
staccato123 |
[file] => /path/to/application/app/bin/cake.php |
# |
Jun 25th 2021, 10:31 |
staccato123 |
( |
# |
Jun 25th 2021, 10:31 |
staccato123 |
[0] => Array |
# |
Jun 25th 2021, 10:31 |
staccato123 |
( |
# |
Jun 25th 2021, 10:31 |
staccato123 |
wibbleArray |
# |
Jun 25th 2021, 10:31 |
staccato123 |
and the first call results in this: |
# |
Jun 25th 2021, 10:29 |
staccato123 |
into vendor/autoload.php |
# |
Jun 25th 2021, 10:28 |
staccato123 |
print_r(debug_backtrace()); |
# |
Jun 25th 2021, 10:28 |
staccato123 |
print("wibble"); |
# |
Jun 25th 2021, 10:28 |
staccato123 |
I put |
# |
Jun 25th 2021, 10:26 |
staccato123 |
thanks |
# |
Jun 25th 2021, 10:26 |
staccato123 |
Yeah, that's what I'm trying |
# |
Jun 25th 2021, 10:03 |
ndm |
staccato123: including the autoloader more than once should have no effect, the code inside will only register a loader once. You could try setting a breakpoint in your `AppShell` file (or a debug statement that dumps a stacktrace) to figure from where / why it is being included. |
# |
Jun 25th 2021, 09:26 |
staccato123 |
vendor/autoload.php seems to be being called twice |
# |
Jun 25th 2021, 09:26 |
staccato123 |
is this the right location for assistance with upgrading from 2.x to 3.x? I have followed the instructions but I am still getting "PHP Fatal error: Cannot declare class App\Console\Command\AppShell, because the name is already in use" when I use the built-in server, and similar (but a different class) with Apache |
# |
Jun 25th 2021, 09:24 |
staccato123 |
Hi all |
# |
Jun 25th 2021, 09:14 |
paolo.bragagni |
miss something? |
# |
Jun 25th 2021, 09:13 |
paolo.bragagni |
infact in appcontroller I have $this->viewBuilder()->Setlayout('TwitterBootstrap/default'); |
# |
Jun 25th 2021, 09:08 |
admad |
Because context matters. Doing $this->layout in a controller won't do anything, you are just setting a non existent property. `$this->viewBuilder()->setLayout('ajax');` should work unless the layout is being reset again somewhere like beforeRender() |