Log message #4161136

# At Username Text
# Jul 23rd 2018, 11:16 clementcrown @dereuromark please do I just download the file and add it in my cakephp application ? i mean https://github.com/dereuromark/cakephp-tools/blob/master/src/Auth/MultiColumnAuthenticate.php
# Jul 23rd 2018, 11:02 neon1024 Afternoon @dereuromark :wave:
# Jul 23rd 2018, 11:01 neon1024 https://book.cakephp.org/3.0/en/controllers/components/authentication.html#creating-custom-authentication-objects
# Jul 23rd 2018, 11:01 neon1024 https://book.cakephp.org/3.0/en/controllers/components/authentication.html#customizing-find-query
# Jul 23rd 2018, 11:00 dereuromark usually a custom finder can be enough however. depends on the use case I guess.
# Jul 23rd 2018, 10:59 clementcrown thanks @dereuromark let me check out the article
# Jul 23rd 2018, 10:59 clementcrown thanks @neon1024 , please can you shed more light on this?
# Jul 23rd 2018, 10:58 dereuromark thats what I use.
# Jul 23rd 2018, 10:57 dereuromark Or use the existing multicolumn adapters, e.g. https://github.com/dereuromark/cakephp-tools/blob/master/src/Auth/MultiColumnAuthenticate.php
# Jul 23rd 2018, 10:56 neon1024 Yes, it’s possible. You could either customise your Auth finder, or write your own Authentication adapter
# Jul 23rd 2018, 10:55 clementcrown @abdualelah.mdy can I have users login to a cakephp application with email/Password or Matric Number/Password? , I have some users who will login with email and password, then I also have some other sets of users who would login with matric number and password, is this possible on a single cakephp installation and database? if yes, please explain.
# Jul 23rd 2018, 10:39 slackebot '\Proffer\Database\Type\FileType');` you can find out more in the book https://book.cakephp.org/3.0/en/orm/database-basics.html#adding-custom-database-types
# Jul 23rd 2018, 10:39 neon1024 @portilloster I would guess that you have not declared a custom data type for the `Foto` field, and as such it is being marshalled into a string, because your database column is a string type. You will probably want a File data type, to get the post array through the marshaller. https://github.com/davidyell/CakePHP3-Proffer/blob/master/src/Database/Type/FileType.php then set the data type `Type::map('proffer.file',
# Jul 23rd 2018, 10:35 mr.mjsm so I am in the server view page, I have the manager id, i want to output the manager name and link it to the manager view page. i have a customized method in the manager controller "displayName ($id)" which will return the name of the manager given the id. how can I use this method in the server view page ?
# Jul 23rd 2018, 10:15 portilloster File uploaded https://cakesf.slack.com/files/U9CUM170B/FBUCJD96U/-.php / https://slack-files.com/T053DPNCM-FBUCJD96U-975d477984
# Jul 23rd 2018, 10:14 portilloster Hi guys! I´m having problems trying to upload a image. I have a controller with a method where the user can edit some of his information, user picture included. When I debug the variable that contain the picture file I just get the name of the file 'name.extension' instead of the array file.
# Jul 23rd 2018, 10:07 fvanhest I’ll have to look within our own application. The $data property remains empty when it is injected in the controller. At the point that the an action (crud) is invoked, the property is filled.
# Jul 23rd 2018, 10:01 neon1024 But it will be set very early, yes, as it’ll be present in the Middleware :slightly_smiling_face:
# Jul 23rd 2018, 10:00 neon1024 Only if the deprecated class is still being used
# Jul 23rd 2018, 09:57 fvanhest @neon1024 Thanks. The $data property is set at https://github.com/cakephp/cakephp/blob/master/src/Http/ServerRequest.php#L361
# Jul 23rd 2018, 09:53 neon1024 ..and you can see the building the Request object
# Jul 23rd 2018, 09:53 neon1024 Which leads back here, https://github.com/cakephp/cakephp/blob/master/src/Http/Server.php#L85
# Jul 23rd 2018, 09:52 neon1024 This is the kick off afaik, https://github.com/cakephp/app/blob/master/webroot/index.php#L37
# Jul 23rd 2018, 09:52 neon1024 Ah, it’s been deprecated, https://github.com/cakephp/cakephp/blob/master/src/Http/ServerRequestFactory.php#L30-L60
# Jul 23rd 2018, 09:52 neon1024 @fvanhest https://github.com/cakephp/cakephp/blob/master/src/Http/ServerRequest.php#L239-L256
# Jul 23rd 2018, 09:45 mr.mjsm File uploaded https://cakesf.slack.com/files/UBN7KUDRA/FBUC3ES9W/pasted_image_at_2018_07_23_12_43_pm.png / https://slack-files.com/T053DPNCM-FBUC3ES9W-8ceecd9405 - so guys, I have this relation between a server and a user. a user can mange many servers and a server can be manages by many users. now i am able to get the user_ids for a given server. but i dont know how to get the name to display the names in the index page of the servers
# Jul 23rd 2018, 09:40 fvanhest Good morning, at what point is the property $data of ServerRequested filled? In the initialize method of a controller, the data property is still empty, but in the action it has the post values.
# Jul 23rd 2018, 09:38 mr.mjsm morning neon, morning all
# Jul 23rd 2018, 07:41 neon1024 Morning all
# Jul 23rd 2018, 06:56 VR__ anyone can answer this question https://stackoverflow.com/questions/51456448/association-data-is-not-saved-in-cakephp-3-6?noredirect=1
# Jul 23rd 2018, 06:55 VR__ anyone can answer this questionhttps://stackoverflow.com/questions/51456448/association-data-is-not-saved-in-cakephp-3-6?noredirect=1
# Jul 23rd 2018, 04:30 chinpei215 @thuyhyvg Where did it occur? Please check the stack trace. I think you would also need to upgrade some plugins such as DebugKit.
# Jul 23rd 2018, 03:01 thuyhyvg I upgraded version 2.6 to 2.10 :))
# Jul 23rd 2018, 02:53 escape so stick to something suported, or upgrade to current 3.6 :p
# Jul 23rd 2018, 02:52 escape no php 7.2 there
# Jul 23rd 2018, 02:52 escape thuyhyvg: have you checked the supported php versions for this old release?
# Jul 23rd 2018, 02:41 thuyhyvg Hello I'm using PHP 7.2, cakephp 2.10.11. I installed php-mcrypt but still failed "Cannot use 'object' as class name as it is reserved". Can you support me, please ?
# Jul 22nd 2018, 20:17 romanj how to set header X-Sendfile for all images?
# Jul 22nd 2018, 20:16 romanj hi
# Jul 22nd 2018, 20:15 rj_ how to force cake to send headers X-Sendfile for all images?
# Jul 22nd 2018, 20:14 rj_ join