# |
Feb 1st 2018, 14:30 |
amit |
Thanks @ooskar1233 |
# |
Feb 1st 2018, 14:30 |
amit |
Ok let me use that |
# |
Feb 1st 2018, 14:28 |
ooskar1233 |
maybe `class_exists` could help? |
# |
Feb 1st 2018, 14:28 |
ooskar1233 |
okay, I misunderstood you |
# |
Feb 1st 2018, 14:27 |
amit |
Can we check the behavior directly, if it is available or not |
# |
Feb 1st 2018, 14:27 |
amit |
Actually we want to share the behavior between multiple apps so we added that into a plugin and using it |
# |
Feb 1st 2018, 14:25 |
ooskar1233 |
to check if plugin is loaded use `Plugin::loaded('MyPlugin')` |
# |
Feb 1st 2018, 14:25 |
ooskar1233 |
Hello Amit. I think you don't need to access behavior from plugin in purpose to do what you want. |
# |
Feb 1st 2018, 14:24 |
amit |
anyone know how we can do that ? |
# |
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 |