Log message #4113478

# At Username Text
# Feb 1st 2018, 14:23 amit I need to check if the plugin is installed than we will add the behavior otherwise not
# Feb 1st 2018, 14:23 amit We want to access a behavior from a plugin
# Feb 1st 2018, 14:22 amit Hi Guyz
# Feb 1st 2018, 14:04 popperz0r ok found it on bootstrap.php :)
# Feb 1st 2018, 14:04 popperz0r nop
# Feb 1st 2018, 14:03 popperz0r does .env file isnt loadded automatically?
# Feb 1st 2018, 14:02 ooskar1233 it may be, yea
# Feb 1st 2018, 14:02 popperz0r :)
# Feb 1st 2018, 14:02 popperz0r maybe my env file isnt loading?
# Feb 1st 2018, 14:01 popperz0r isnt loading :s
# Feb 1st 2018, 14:00 ooskar1233 yes, use `env()`
# Feb 1st 2018, 13:59 popperz0r is it possible to load enviroment vars inside a component?
# Feb 1st 2018, 13:48 netstyler was set before: location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass 127.0.0.1:9000; }
# Feb 1st 2018, 13:48 netstyler perhaps issue where the route is set...
# Feb 1st 2018, 13:47 netstyler this route in the nginx vhost conf caused the issue
# Feb 1st 2018, 13:47 netstyler https://gist.github.com/netstyler/690dafc72ff7b980ed31825bbc28ef59
# Feb 1st 2018, 13:46 netstyler found the issue
# Feb 1st 2018, 13:39 ooskar1233 did you try to run builtin server?
# Feb 1st 2018, 13:38 netstyler php7.1-sqlite3 <== is installed, I think sqlite is not the issue
# Feb 1st 2018, 13:37 netstyler okay will check the config
# Feb 1st 2018, 13:37 admad then it's url rewriting issue
# Feb 1st 2018, 13:37 ooskar1233 check if you get the error when you run `./bin/cake server`, if not it's server conf. issue
# Feb 1st 2018, 13:36 netstyler from nginx server
# Feb 1st 2018, 13:36 admad 404 page is from webserver or cakephp?
# Feb 1st 2018, 13:35 netstyler rest of the app works
# Feb 1st 2018, 13:34 netstyler it tries to to load /debug_kit/js/toolbar.js?1514950494 but gives 404
# Feb 1st 2018, 13:34 admad make sure you have pdo-sqlite installed and URL rewriting enabled for your server
# Feb 1st 2018, 13:33 netstyler Hi all, I moved from a osx dev env to a linux dev env and now the debug_kit assets are not loaded anymore... someone any hint how come?
# Feb 1st 2018, 13:26 ooskar1233 `FrozenTime::setToStringFormat('yyyy-MM-dd HH:mm:ss');` in `bootstrap.php` should do the job
# Feb 1st 2018, 13:24 madrid998 ok, I will read that over
# Feb 1st 2018, 13:23 ooskar1233 @madrid998 ^
# Feb 1st 2018, 13:23 ooskar1233 https://book.cakephp.org/3.0/en/core-libraries/time.html#setting-the-default-locale-and-format-string
# Feb 1st 2018, 13:23 ooskar1233 check this one out
# Feb 1st 2018, 13:22 ooskar1233 maybe something is wrong with your default datetime format config
# Feb 1st 2018, 13:17 madrid998 it works when I do $myDateTime = new DateTime($MyFrozenTime->format('c'))
# Feb 1st 2018, 13:17 madrid998 Does anyone know why my FozenDateDatime object looses seconds when using it to create a DateTime object like this: $myDateTime = new DateTime($MyFrozenTime)?
# Feb 1st 2018, 11:33 gaetansnl @hmic It's for multi tenant, I switch the database one time in a middleware but I also need to switch it somewhere in the code. // You mean instead of clearing TableRegistry, I change all tables connections inside his cache ? I think I need a custom TableLocator to do that
# Feb 1st 2018, 11:26 hmic you can tell the tableregistry to replace an alias
# Feb 1st 2018, 11:26 hmic gaetansnl: whats the usecase?
# Feb 1st 2018, 11:25 gaetansnl Hello, when I create a connection alias, I clear the table registry to clear cached tables. It works fine for new calls to TableRegistry::get. But sometimes I have models already loaded in controllers, is there a way to reload them or I need to do it manually ?
# Feb 1st 2018, 11:10 turkles Text based game, Torn