Log message #4173938

# At Username Text
# Jan 17th 2019, 11:25 neon1024 I’ve never done a modelless form so probably the worst person to talk about it :P
# Jan 17th 2019, 11:25 ashish_onmobile Need some help
# Jan 17th 2019, 11:25 ashish_onmobile Hi Friends
# Jan 17th 2019, 11:25 neon1024 So why do you even care about the schema?
# Jan 17th 2019, 11:24 asdfghj model
# Jan 17th 2019, 11:24 asdfghj neon1024 marshalled? it has no modle
# Jan 17th 2019, 11:21 neon1024 Depends what you’re expecting to happen
# Jan 17th 2019, 11:21 neon1024 Just like using _ids
# Jan 17th 2019, 11:21 neon1024 Well yeah I guess right, because each id would be a new entity when marshalled right?
# Jan 17th 2019, 11:20 asdfghj ok
# Jan 17th 2019, 11:20 asdfghj neon1024 integer for multiple ids?
# 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); `