Log message #4193793

# At Username Text
# Jul 18th 2019, 07:00 welo.lamacchia i have also to return the response?
# Jul 18th 2019, 06:59 admad you need to assign back the instance `$this->response = $this->response->withCookie($cookie);`
# Jul 18th 2019, 06:57 welo.lamacchia Cake does not save cookie, what is wrong?
# Jul 18th 2019, 06:47 ajibarra If you want to override the view you need to create src/Template/Plugin/CakeDC/Users/Users/profile.ctp
# Jul 18th 2019, 06:46 ajibarra because the user is sent to view layer including any contain in configuration..and if you need something more specific you can always override get method in your users table (in case you have one)
# Jul 18th 2019, 06:45 ajibarra You can just override the view
# Jul 18th 2019, 05:40 joey.mukherjee I am using the CakeDC/Users plugin and I want to override the cakedc/users/src/Controller/Traits/ProfileTrait.php file and add in some more fields to send to profile. How would I do that?
# Jul 18th 2019, 01:09 niel45 Then I have no suggestions. I don't do Windows any more
# Jul 18th 2019, 01:09 FueripoDesu I'm using an IIS on Windows Server, and the folder is in a shared folder of the network... but it's open for the internal network.
# Jul 18th 2019, 01:07 niel45 so on Debian or deriviatives the location would need either user or group to be accessible for www-data
# Jul 18th 2019, 01:07 niel45 check the location you are trying to put to has permissions for the www server
# Jul 18th 2019, 01:05 FueripoDesu Hello, can anybody help me, I'm having a "failed to open stream: Permission denied" in a controller that I'm trying to "file_put_contents"... where do I have to set permission for this?
# Jul 17th 2019, 22:22 dereuromark Yeah, AJAX delete is now working without the need to modify baked controller delete actions: https://sandbox.dereuromark.de/sandbox/ajax-examples/table (live demo)
# Jul 17th 2019, 22:21 maxxstyle06 Guys how to generate an access token for guest users that do not require logining in. What should I rely on. It’s for my api.
# Jul 17th 2019, 20:50 dereuromark is phpstan still working for core? "Fatal error: Interface 'PHPStan\Reflection\BrokerAwareClassReflectionExtension' not found in /.../vendor/cakephp/cakephp/tests/PHPStan/AssociationTableMixinClassReflectionExtension.php"
# Jul 17th 2019, 20:15 ckjksl I know I can `link()` them afterwards if i have the tag entities
# Jul 17th 2019, 20:14 ckjksl So from what I understand, it makes a new Entity for $articles using the data passed from the form. But how do I let cake know which Tags to associate with this article?
# Jul 17th 2019, 20:12 ckjksl `$entity = $articles->newEntity($this->request->getData(), ['associated' => ['Tags']]);
# Jul 17th 2019, 20:10 ckjksl Hi everyone. I'm trying to edit an entity using patchEntity() and add the associated tags with it, but I'm having a little trouble understanding the examples in the documentation
# Jul 17th 2019, 18:07 tmig I'll look at it, htank you
# Jul 17th 2019, 18:02 graziel https://book.cakephp.org/3.0/en/orm/query-builder.html#custom-functions
# Jul 17th 2019, 18:00 tmig I'm keeping reading the docs, but cannot figure out how to INSTR or TIMESTAMPDIFF
# Jul 17th 2019, 17:59 tmig I'm looking for the way to make a INSTR in the cake ORM, can anybody help me do that ?
# Jul 17th 2019, 17:58 tmig Hi all
# Jul 17th 2019, 17:41 dereuromark throttling probably. see awesome list for this
# Jul 17th 2019, 17:40 graziel what do you mean by 'secure'?
# Jul 17th 2019, 17:35 maxxstyle06 Guys what is best way to secure an api that is public and that do not requires authentication ??
# Jul 17th 2019, 15:44 neon1024 Ah, it’s me being a spanner. Declare the connection config in the constructor, not in initialize :face_palm: :rubberduck:
# Jul 17th 2019, 15:42 neon1024 :S
# Jul 17th 2019, 15:42 neon1024 `var_dump(ConnectionManager::configured())` shows an array of two sources called `default` and `test`, but dumping the instances `var_dump($this->Calls->getConnection())` shows `NULL`
# Jul 17th 2019, 15:41 neon1024 My datasource app config has a correctly configured `test` source
# Jul 17th 2019, 15:40 neon1024 `$this->Calls->initialize(['connection' => ConnectionManager::get('test')]);`
# Jul 17th 2019, 15:40 neon1024 Which leads to `$this->getConnection()` returning `null` in `Table.php`, however I’ve added a connection instance to the config when running `initialize`
# Jul 17th 2019, 15:39 neon1024 However I encounter `Error: Call to a member function getSchemaCollection() on null`
# Jul 17th 2019, 15:39 neon1024 I’d like to unit test that my table class has the correct data type set to the schema
# Jul 17th 2019, 14:59 neon1024 Have a great day @scuadra
# Jul 17th 2019, 14:59 itmpls Did you figure it out?
# Jul 17th 2019, 14:58 scuadra I really appreciate everyone's help. Have a nice day
# Jul 17th 2019, 13:58 scuadra I posted the wrong snippet
# Jul 17th 2019, 13:58 scuadra but they are protected
# Jul 17th 2019, 13:58 scuadra my mistake