# |
Jun 9th 2019, 18:28 |
st.steinkuehler |
Hello, maybe someone can explain me the locale handling in 3.7, because it does not behave as I expected: The browser sends `Accept-Language: de,en;q=0.7,en-US;q=0.3` and in 'config/app.php' I set 'App.defaultLocale' to `env('APP_DEFAULT_LOCALE', 'de')`. I also use the 'LocaleSelectorMiddleware' in 'Application.php' ( `$middleware->add(new LocaleSelectorMiddleware(['de','en']));` ), because the Cake Application should react on the |
# |
Jun 9th 2019, 18:21 |
JDD_Canada |
https://pastebin.com/aEs82iCU |
# |
Jun 9th 2019, 18:15 |
JDD_Canada |
to be a bit clearer, the above is a partial from my contain array inside $this->paginate |
# |
Jun 9th 2019, 18:13 |
JDD_Canada |
but 'InterestHolders' => ['Contacts' => ['EmailAddresses','PhoneNumbers']] results in sql that is trying to look up emailaddresses.contact_id = but it is in a join table. Am I messing up my paginate array, or my hasmany declarations in my table models? |
# |
Jun 9th 2019, 18:12 |
JDD_Canada |
I might have over normalized my database to be useful.. I have an InterestHolder hasMany Contacts Contacts hasMany EmailAddresses When I lookup an interest, which has an interestholder, I want to contain deep enough to show the email address and phone numbers of the contacts. |
# |
Jun 9th 2019, 15:38 |
joeymu |
what is the best way to create special types of entities? or create default entities to a certain set of values? |
# |
Jun 9th 2019, 10:04 |
adithya |
i guess i'm gonna give it another go |
# |
Jun 9th 2019, 09:58 |
challgren |
The latest version before the new Authentication switch was pretty well documented |
# |
Jun 9th 2019, 09:58 |
adithya |
sure, i started with cakedc/users but there aren't tutorials to get me started and i felt that the resources are really low |
# |
Jun 9th 2019, 09:49 |
challgren |
And no worries just pay it forward |
# |
Jun 9th 2019, 09:47 |
challgren |
If your doing login stuff cakedc/users is a great plugin to simplify things |
# |
Jun 9th 2019, 09:46 |
adithya |
oh! my client wants to support FB login, so I'm here trying to understand this, thank you for taking the time to point me toward the resources :slightly_smiling_face: |
# |
Jun 9th 2019, 09:40 |
challgren |
The stackoverflow may help. I stopped doing FB dev since they kept changing and removing stuff so I gave up but I recall the whitelisting, https, and resolvable url where common issues people had |
# |
Jun 9th 2019, 09:38 |
adithya |
thank you! |
# |
Jun 9th 2019, 09:37 |
adithya |
yes, it is! |
# |
Jun 9th 2019, 09:37 |
challgren |
https://stackoverflow.com/questions/37001004/facebook-login-message-url-blocked-this-redirect-failed-because-the-redirect |
# |
Jun 9th 2019, 09:36 |
challgren |
Is your URL publicly accessible? |
# |
Jun 9th 2019, 09:25 |
ra7bi |
Yes |
# |
Jun 9th 2019, 09:25 |
challgren |
Just a FYI with PDF generation css and links should be fullBase => true so the PDF generator can properly locate the files/links |
# |
Jun 9th 2019, 09:23 |
challgren |
Or on a computer with access download all your stuff and then zip up the project and sneakernet it to your dev |
# |
Jun 9th 2019, 09:23 |
ra7bi |
and install |
# |
Jun 9th 2019, 09:23 |
ra7bi |
and i will do composer update |
# |
Jun 9th 2019, 09:23 |
ra7bi |
just i got an idea , will move the project online without src folder . |
# |
Jun 9th 2019, 09:22 |
ra7bi |
Yes, |
# |
Jun 9th 2019, 09:22 |
challgren |
Isolated from the public internet |
# |
Jun 9th 2019, 09:22 |
ra7bi |
what do you mean ? |
# |
Jun 9th 2019, 09:20 |
challgren |
Is your dev airgapped? |
# |
Jun 9th 2019, 09:19 |
ra7bi |
Yah , but i meant if i could download entire package |
# |
Jun 9th 2019, 09:18 |
challgren |
well cloning wont fix that problem since you’ll still need a connection to dl the package |
# |
Jun 9th 2019, 09:18 |
ra7bi |
that's why |
# |
Jun 9th 2019, 09:18 |
ra7bi |
my development environment is offline |
# |
Jun 9th 2019, 09:16 |
challgren |
try composer dump-autoload |
# |
Jun 9th 2019, 09:14 |
challgren |
You could submodule it but composer is your best option IMHO |
# |
Jun 9th 2019, 09:14 |
ra7bi |
or i need to do more steps |
# |
Jun 9th 2019, 09:14 |
ra7bi |
im wondering can i install the plugin without composer ? like clone it from github to vendor folder only |
# |
Jun 9th 2019, 09:13 |
challgren |
Maybe clear your vendor folder and rerun composer |
# |
Jun 9th 2019, 09:13 |
ra7bi |
@challgren sorry i was busy , i think i've a problem with my development PC , i install it in other pc and everythings just works fine |
# |
Jun 9th 2019, 09:12 |
challgren |
Any luck @ra7bi |
# |
Jun 9th 2019, 08:38 |
challgren |
Could be the config vars are not set |
# |
Jun 9th 2019, 08:37 |
challgren |
Can you look in your logs folder to see if theres anything meaningful there |
# |
Jun 9th 2019, 08:37 |
ra7bi |
so i cant debug it |