# |
Jul 3rd 2018, 14:08 |
josbeir |
3.6.5 ? |
# |
Jul 3rd 2018, 14:08 |
josbeir |
(on windows) |
# |
Jul 3rd 2018, 14:08 |
ollibohland |
yes |
# |
Jul 3rd 2018, 14:08 |
josbeir |
@ollibohland was it working in a version prior to 3.6.6 ? |
# |
Jul 3rd 2018, 14:06 |
flavius |
inb4 his windows breaks and he starts asking us how to reinstall it :) |
# |
Jul 3rd 2018, 14:05 |
ollibohland |
yes, and time-stamp is correct |
# |
Jul 3rd 2018, 14:05 |
josbeir |
its windows.. whatevs :P |
# |
Jul 3rd 2018, 14:05 |
flavius |
/* |
# |
Jul 3rd 2018, 14:05 |
josbeir |
rm -rf is god |
# |
Jul 3rd 2018, 14:04 |
josbeir |
:) |
# |
Jul 3rd 2018, 14:04 |
flavius |
careful with that rm -rf :) |
# |
Jul 3rd 2018, 14:04 |
josbeir |
:P |
# |
Jul 3rd 2018, 14:04 |
dereuromark |
sure vendor/cakephp/cakephp/src code is there? |
# |
Jul 3rd 2018, 14:04 |
josbeir |
rm -rf vendor andand composer install |
# |
Jul 3rd 2018, 14:03 |
ollibohland |
@dereuromark did not work, same error |
# |
Jul 3rd 2018, 14:03 |
itmpls |
meaning if I specify a _host config of 'blah.domain.com' for a route, it doesn't apply and will just apply globally? anyone run into this as well? |
# |
Jul 3rd 2018, 14:02 |
itmpls |
https://github.com/cakephp/cakephp/issues/11689 so _host is not respected at all in regards to subdomains and this is a milestone for 3.7? |
# |
Jul 3rd 2018, 14:01 |
ollibohland |
after dumpautoload, composer update again? |
# |
Jul 3rd 2018, 14:01 |
ollibohland |
will try... |
# |
Jul 3rd 2018, 14:00 |
dereuromark |
try composer dumpautoload |
# |
Jul 3rd 2018, 14:00 |
dereuromark |
Sounds like your composer install didnt work. |
# |
Jul 3rd 2018, 14:00 |
ollibohland |
cakephp 3.6.6 |
# |
Jul 3rd 2018, 14:00 |
slackebot4 |
[..]\vendor\cakephp\cakephp\config\bootstrap.php on line 23 any clue how to fix this? thanks for all tipps |
# |
Jul 3rd 2018, 14:00 |
ollibohland |
hey guys, we're encountering some trouble concerning console-application in our cake-installation on one of our environments (win) ...when calling the cake-console we get this error: Fatal error: Uncaught Error: Class 'Cake\Routing\Router' not found in [..]\vendor\cakephp\cakephp\config\bootstrap.php:23 Stack trace: #0 [..]\config\bootstrap.php(30): require() #1 [..]\bin\cake.php(31): include('E:\\cm3_prod\\con...') #2 {main} thrown in |
# |
Jul 3rd 2018, 11:50 |
james.phillips |
@bravo-kernel Thanks makes me feel less insane now |
# |
Jul 3rd 2018, 11:01 |
bravo-kernel |
makes me wonder if something changed along the way |
# |
Jul 3rd 2018, 11:01 |
bravo-kernel |
@james.phillips I am seeing the same. Both `?include` parameter and `contain` in the controller REQUIRE the model to be present in routes |
# |
Jul 3rd 2018, 10:48 |
james.phillips |
I didnt have it in my routes to begin with as it wasnt needed but adding fixed that issue...which is confusing as its not needed. |
# |
Jul 3rd 2018, 10:45 |
james.phillips |
makes sense but when I remove it I get the error array (\n 'controller' => 'CrmEventSubtypes',\n '_method' => 'GET',\n 'action' => 'view',\ is missing when using $event->getSubject()->query->contain([ |
# |
Jul 3rd 2018, 10:34 |
bravo-kernel |
does that make sense? |
# |
Jul 3rd 2018, 10:33 |
bravo-kernel |
Users will not be able to access `/cities` but will get the contained data when accessing `/countries` |
# |
Jul 3rd 2018, 10:33 |
bravo-kernel |
then `Cities` does not have to be in your routes.php |
# |
Jul 3rd 2018, 10:33 |
bravo-kernel |
However, let's say you want to include/contain `Cities` in the index action for countries |
# |
Jul 3rd 2018, 10:32 |
bravo-kernel |
e.g. if you want to be able to access `/countries`... `Countries` needs to be in your route.php |
# |
Jul 3rd 2018, 10:32 |
bravo-kernel |
@james.phillips you only need to add stuff to `$API_RESOURCES` in `routes.php` if you want to access that model directly |
# |
Jul 3rd 2018, 10:22 |
josbeir |
$routes->plugin('Products', [ '_namePrefix' => 'products:' ] |
# |
Jul 3rd 2018, 10:21 |
josbeir |
hmm, shoudln't the _namePrefix argument work on $routes->plugin routes ? |
# |
Jul 3rd 2018, 09:33 |
slackebot4 |
} }); }); |
# |
Jul 3rd 2018, 09:33 |
james.phillips |
Router::prefix('api', function ($routes) { //$routes->setExtensions(['json']); $routes->prefix('v1', function ($routes) { //valid api routes $API_RESOURCES = [ 'CrmContacts', 'CrmEvents', ]; foreach ($API_RESOURCES as $apiResource) { $routes->resources($apiResource, [ 'inflect' => 'dasherize' ]); |
# |
Jul 3rd 2018, 09:32 |
james.phillips |
ok.. i fixed it but im confused... |
# |
Jul 3rd 2018, 09:29 |
slackebot4 |
associated correctly....Maybe its somethign outside of this code messing it up |