Log message #4125888

# At Username Text
# Mar 17th 2018, 14:39 bakro.istvan @dereuromark
# Mar 17th 2018, 14:31 spencdev gist it
# Mar 17th 2018, 14:23 Guest74853 hi everyone. i'm having trouble in passing the value of a select control to the controller when form is posted
# Mar 17th 2018, 14:22 dereuromark it should be yeah
# Mar 17th 2018, 14:19 bakro.istvan Is the "pivot" table accessible from these two model/controller?
# Mar 17th 2018, 14:19 bakro.istvan Yes, what I tought. Just to be clear I have users, pics, users_pics table and UsersTable, PicsTable and UsersController, PicsController
# Mar 17th 2018, 14:16 dereuromark this shouldnt delete the linked main records
# Mar 17th 2018, 14:15 dereuromark Simple delete on the pivot table
# Mar 17th 2018, 14:15 bakro.istvan However it brings my next question: How to remove a link?
# Mar 17th 2018, 14:14 bakro.istvan append does work
# Mar 17th 2018, 14:13 adithya *what am i missing?
# Mar 17th 2018, 14:12 adithya *added
# Mar 17th 2018, 14:12 adithya so, i just wanted to ask this! a very beginner question, i just addes the auth component but all my pages are accessible, just wondering what i am missing?
# Mar 17th 2018, 14:10 dereuromark does append strategy work?
# Mar 17th 2018, 14:10 dereuromark ah, so its not a simple habtm
# Mar 17th 2018, 14:05 bakro.istvan "dont repost the payload for the pics, just attach the _ids you wanna save." --> I would post only the _ids, but my join records do have attributes.
# Mar 17th 2018, 13:56 dereuromark same ideas
# Mar 17th 2018, 13:56 dereuromark dont repost the payload for the pics, just attach the _ids you wanna save. tip: look into my tags plugin and how it deals with adding to existing ones.
# Mar 17th 2018, 13:55 bakro.istvan the posted data looks like this: { pics: [ {id: 2, _joinData: {type: "profile"}} ] }
# Mar 17th 2018, 13:54 dereuromark also you can manually add into that table, that way you go around the habtm magic completely
# Mar 17th 2018, 13:54 dereuromark see the docs, you can change the strategy from replace to append
# Mar 17th 2018, 13:53 bakro.istvan I would like to do that, but if I POST the new link to /users/edit/1, the old link will be deleted and only the new will be there. _This action is baked in console._
# Mar 17th 2018, 13:51 dereuromark just add a new entry then in this pivot table
# Mar 17th 2018, 13:50 bakro.istvan sorry, i meant habtm
# Mar 17th 2018, 13:46 dereuromark in this case copy over might be easier now
# Mar 17th 2018, 13:46 dereuromark then you should have used habtm :slightly_smiling_face: a pivot table
# Mar 17th 2018, 13:45 bakro.istvan My users hasmany pics. How can I link/add an already existing pic to a user, without recreating the already existing linking records.
# Mar 17th 2018, 11:28 xinobi does cakephp provides any filter against Host Header Attacks?
# Mar 17th 2018, 11:18 xinobi Is it possible to sort associations with select strategy? https://discourse.cakephp.org/t/sort-from-view-with-when-using-hasone-associations/3976/2
# Mar 17th 2018, 08:24 saeideng `debug($application)`
# Mar 17th 2018, 08:22 admad hoping doesn't always work :slightly_smiling_face: where exactly did you set the var in app controller?
# Mar 17th 2018, 08:17 clementcrown $application was set in the AppController, so I hope, it should be visible in every area of the application
# Mar 17th 2018, 08:17 admad based on the error msg it's obvious that `$application` var is not set
# Mar 17th 2018, 08:14 clementcrown side_menu.ctp is an element and it is rendered in the defult.ctp
# Mar 17th 2018, 08:14 clementcrown File uploaded https://cakesf.slack.com/files/U59RBAFS6/F9SK2EYKH/-.txt / https://slack-files.com/T053DPNCM-F9SK2EYKH-5cec2adcdb - that is the content of the side_menu.ctp
# Mar 17th 2018, 08:11 saeideng probably you don't load Helper
# Mar 17th 2018, 08:10 saeideng you try to use a property on non-object
# Mar 17th 2018, 08:09 saeideng @clementcrown click on `notice (8)` on error
# Mar 17th 2018, 08:03 clementcrown File uploaded https://cakesf.slack.com/files/U59RBAFS6/F9SK1BCJ3/image.png / https://slack-files.com/T053DPNCM-F9SK1BCJ3-c3938b366d
# Mar 17th 2018, 07:24 Tannheuser84 I rode something about apache permissions, but I am not sure what exactly those permissions should be and how do i set them
# Mar 17th 2018, 07:23 Tannheuser84 What am I missing?