Log message #4116403

# At Username Text
# Feb 11th 2018, 10:10 marcin2828 it gives header 502 - so technical problems
# Feb 11th 2018, 10:09 rochasmarcelo @savant hi do you know what is happening with plugins.cakephp.org? It is offline
# Feb 11th 2018, 09:21 marcin2828 thx for the help!
# Feb 11th 2018, 09:16 marcin2828 so /find/recordsList will always point to cell defined in routes
# Feb 11th 2018, 09:15 marcin2828 here is my solution : I will not need cell aliasing - as for different cells like - RecordsList (default cell) , RecordsListCustomerABC (custom cell) - I will use routes , which I will override per organisation
# Feb 11th 2018, 09:14 marcin2828 so each cell allows to draw different forms and modify query object used to filter out data
# Feb 11th 2018, 09:13 slackebot1 ( values form form as passed to that cell) cell displays only data
# Feb 11th 2018, 09:13 marcin2828 so cells are already part of the puglin that allows to access that group of functionalities, I have dummy controller with single action that accepts cell name and then renders primary method of that cell, depending if request comes via GET or AJAX , each cell renders form built from cell config (so each cell can display own set of fields) , and uses that form to filter out data which is also displays ; when request comes via ajax call
# Feb 11th 2018, 09:08 marcin2828 no, but I think I found answer to my question already ...
# Feb 11th 2018, 09:08 saeideng you can put your cell into plugins
# Feb 11th 2018, 09:08 saeideng ?
# Feb 11th 2018, 09:08 saeideng `/plugins/org1/` , `/plugins/org2/`
# Feb 11th 2018, 09:07 saeideng do you use plugins for your themes ?
# Feb 11th 2018, 09:06 marcin2828 and soon instead of 20 asctions I will have 40 , 60 and so on ....
# Feb 11th 2018, 09:05 saeideng >wants to manage same part of the system differently create 2 action or pass arg
# Feb 11th 2018, 09:04 marcin2828 so I moved logic to cells (which was correct move in my particular case as forms build by cell's views are re-used on good few pages)
# Feb 11th 2018, 09:03 marcin2828 For an example two organisations wants to manage same part of the system differently - I want to avoid creating plugins for small bits like that ...
# Feb 11th 2018, 09:01 saeideng why?
# Feb 11th 2018, 08:59 marcin2828 Hello everyone, I have a question about cells : Is there any way to alias cells?
# Feb 11th 2018, 08:53 K4T ok, I think now I got it... well... (facepalm)
# Feb 11th 2018, 08:48 K4T yeah, I read it few times, I probably do not understand something here as I am not interested in creating new collection. I want to modify items within existing collection. That is why I choosed each. Anyway thank you for help, I will use map now.
# Feb 11th 2018, 08:36 saeideng The map() method will create a new collection based on the output of the callback being applied to each object in the original collection:
# Feb 11th 2018, 08:36 saeideng The each() method will not create a new collection, but will allow you to modify any objects within the collection:
# Feb 11th 2018, 08:31 K4T admad could you explain why each is not working? According to doc: "but will allow you to modify any objects within the collection:"
# Feb 11th 2018, 08:24 admad K4T: use map() instead of each()
# Feb 11th 2018, 08:14 K4T any ideas, please?
# Feb 11th 2018, 08:14 K4T Hello, in CakePHP 3.5 I have collection made from array. I am trying to use ->each method to unset some fields from each collection item. Unfortunatelly it looks like each is not modifing collection itself like it is mentioned in documentation. Here is the code: https://gist.github.com/K4T/8c0d271c9f6ee0bc030c90a6418a4d43
# Feb 11th 2018, 07:45 ricksaccous not sure that will 100% work because you still might get the table not found error with that
# Feb 11th 2018, 07:44 ricksaccous then try to do echo $this->Modelname->hamburger;
# Feb 11th 2018, 07:43 ricksaccous { public $hamburger = "Loaded"; }
# Feb 11th 2018, 07:43 ricksaccous i guess create a property in the class like
# Feb 11th 2018, 07:37 sujay is there any ways to test if its properly loaded?
# Feb 11th 2018, 07:37 sujay the model is loaded
# Feb 11th 2018, 07:37 sujay its 2.x, and i'm using the same copy as on the servers
# Feb 11th 2018, 07:34 ricksaccous are you completely sure you are using same version of cake on test and production server?
# Feb 11th 2018, 07:33 ricksaccous are you sure the model is loading?
# Feb 11th 2018, 07:33 ricksaccous are you using cakephp3?
# Feb 11th 2018, 07:33 sujay would it be related to any naming or somethings?
# Feb 11th 2018, 07:32 sujay same issue
# Feb 11th 2018, 07:32 sujay tried changing name of the table
# Feb 11th 2018, 07:32 sujay i checked the models also