Log message #4173927

# At Username Text
# Jan 17th 2019, 11:18 joris_ I think we'll just go with app_local then
# Jan 17th 2019, 11:16 neon1024 Yeah, if I remember we had some issues with cli vs web, but it was my colleagues who sorted that out, so I don’t know what thier solution was
# Jan 17th 2019, 11:15 joris_ I did some quick testing while a simple .env file takes 0.24ms to load, loading app_local only takes 0.024ms
# Jan 17th 2019, 11:14 joris_ @neon1024 previously we set the variables in the VirtualHost config but they were not set when using cli which made that cumbersome
# Jan 17th 2019, 11:11 neon1024 Oh schema, yes, I’m probably wrong with array as a type then. You’d probably want integer
# Jan 17th 2019, 11:10 neon1024 There is a section on this in the book, https://book.cakephp.org/3.0/en/core-libraries/form.html
# Jan 17th 2019, 11:05 asdfghj k
# Jan 17th 2019, 10:57 neon1024 Well why does it matter, you’re not marshalling your data for a database anyway
# Jan 17th 2019, 10:56 asdfghj cool :D
# Jan 17th 2019, 10:56 asdfghj neon1024 uh really? is "array" a type
# Jan 17th 2019, 10:53 neon1024 So you’d execute something like `export DEBUG="false";`
# Jan 17th 2019, 10:51 neon1024 We set out ENV in our Ansible configuration
# Jan 17th 2019, 10:51 neon1024 So in production you set those directly in the environment, not using a file
# Jan 17th 2019, 10:51 neon1024 I thought the .env file overrode environment variables
# Jan 17th 2019, 10:39 joris_ We're currently using .env files to set system specific configurations although i just read in this in the comments: `It is HIGHLY discouraged to use a .env file in production, due to security risks and decreased performance on each request.` How is it different from loading a local config file through `Configure::load('app_local', 'default');` ?
# Jan 17th 2019, 10:37 neon1024 Array?
# Jan 17th 2019, 10:35 asdfghj dereuromark, can you help me please?
# Jan 17th 2019, 10:34 asdfghj it is a <select>
# Jan 17th 2019, 10:34 asdfghj guys, what type should i use in buildschema for a field that accept multiple ids ?
# Jan 17th 2019, 10:32 dereuromark See also https://www.dereuromark.de/2015/01/06/acl-access-control-lists-revised/
# Jan 17th 2019, 10:31 dereuromark @justrohu if you dont need acl, dont use it. only use if simpler approaches arent enough.
# Jan 17th 2019, 10:15 rogerpro Hi @justrohu, regarding ACL you can check this article: https://www.cakedc.com/roger_campanera/2018/01/26/integrating-users-and-acl-plugins-in-cakephp
# Jan 17th 2019, 10:12 asdfghj neon1024 pardon another question, i am creating a new custom form (model-less) in thie form i have a select where the user can select multiple options... now i have a doubt regarding the type of that field in the _buildSchema(Schema $schema)
# Jan 17th 2019, 10:08 asdfghj good!
# Jan 17th 2019, 10:08 asdfghj hmm ok
# Jan 17th 2019, 10:08 asdfghj neon1024, maybe a custom block inside the cell view where i "link" to css files
# Jan 17th 2019, 09:55 neon1024 Although it does sound like it needs a new custom finder to me
# Jan 17th 2019, 09:55 neon1024 `$query = $users->findByUsername(null, ['notnull' => true])`
# Jan 17th 2019, 09:54 neon1024 I’d probably use an option and update your custom finder
# Jan 17th 2019, 09:40 johnwayne something like `$query = $users->findByUsername(not null); `
# Jan 17th 2019, 09:39 johnwayne is there a way to use `$query = $users->findByUsername('joebob');` but to check `if Username is not null`
# Jan 17th 2019, 09:30 neon1024 You could write a cell specific CSS file, and just add a `<link ref="stylesheet">` tag to your Cells template file
# Jan 17th 2019, 09:19 asdfghj i know cells are isolated but, they can have script and css too, is it normal that i must use <style> and <script>...</script> from there?
# Jan 17th 2019, 09:17 asdfghj passing the view object through the cell() is not really cool :D
# Jan 17th 2019, 09:16 asdfghj i think it is usefull to add css or script from cells
# Jan 17th 2019, 09:12 neon1024 Morning all
# Jan 17th 2019, 09:10 willem ok, i think you should read this page: https://github.com/cakephp/cakephp/issues/10166 it has some solutions
# Jan 17th 2019, 09:06 willem weird. I deleted model cache and persistent cache and now it seems to work.
# Jan 17th 2019, 09:06 asdfghj willem you are right but i should use a css where the cell are loaded i woul dlike to avoid adding that style in everypage
# Jan 17th 2019, 09:05 asdfghj back
# Jan 17th 2019, 09:01 willem when i add the CAKEPHP cookie with the session id from the database it works and i can log in