Log message #4201087

# At Username Text
# Sep 2nd 2019, 22:24 CyberSee I updated the datasource file with the correct info and tryed a migration and a rollback
# Sep 2nd 2019, 22:23 CyberSee Hey guys i need help installing OpenEmis. It's an opensource softward that was made with cakephp. The installer is broke and I was wandering if theres anyway I can buypass it.
# Sep 2nd 2019, 22:13 FrostCandy ty
# Sep 2nd 2019, 21:42 dereuromark I use https://github.com/burzum/cakephp-service-layer
# Sep 2nd 2019, 21:41 FrostCandy Anyone have a link to show how and where to include business logic model to my controller? I'm used to having a $this->load modual, then call functions in that model from my controller :D
# Sep 2nd 2019, 21:03 FrostCandy $this->request->hiddendata('token'); - something crazy like that
# Sep 2nd 2019, 21:02 FrostCandy There is probably a way to read the hidden form field value that I'm unaware of. $this->request->data('token'); is how im doing it now.
# Sep 2nd 2019, 20:59 FrostCandy Ok, well thanks I guess, but I still need an answer if anyone knows what's happening here.
# Sep 2nd 2019, 20:57 dereuromark dont send data via hidden fields in the first place. keep them in the controller if you can.
# Sep 2nd 2019, 20:55 FrostCandy If i put it in a text field, it works as expected, but once in a hidden field the value is some sort of encoding, and thus I can not read it when i post the data.
# Sep 2nd 2019, 20:53 FrostCandy When i post the data with the submit button, the value is different than what is in the $token i set.
# Sep 2nd 2019, 20:53 FrostCandy I'm having an insane problem. I send a variable to a hidden form field, and Cake seems to corrupt the value. Controller: $this->set('token', 'letters'); CTP: echo $this->Form->control('token', ['value'=>$token, 'type'=>'hidden']);
# Sep 2nd 2019, 19:48 cnizzardini or at the very least https://book.cakephp.org/3.0/en/quickstart.html
# Sep 2nd 2019, 19:47 cnizzardini read that whole section
# Sep 2nd 2019, 19:47 cnizzardini https://book.cakephp.org/3.0/en/intro.html
# Sep 2nd 2019, 19:45 cnizzardini Controller should be Store, action Bakery, and the view (template) would also be bakery
# Sep 2nd 2019, 19:33 entry_lvl_dev whats the best way to find the view thats associated with that url
# Sep 2nd 2019, 19:33 entry_lvl_dev im brand new to cakephp.. whats the quickest way to find out the view and controller for a url? say locahost/store/bakery
# Sep 2nd 2019, 19:08 dereuromark @jotpe I finalized it. Thanks to your input it can now also more correctly annotate the actual ones, by not adding the ones that are assignment, and thus wrong to add :slightly_smiling_face:
# Sep 2nd 2019, 17:12 cnizzardini n/m in the constructor I guess
# Sep 2nd 2019, 17:09 cnizzardini Is there a way to set the action on Cake\Http\ServerRequest
# Sep 2nd 2019, 16:18 neon1024 Thanks everyone! :duck:
# Sep 2nd 2019, 16:17 neon1024 …as I will only care about the form inputs the user might have changed!
# Sep 2nd 2019, 16:15 neon1024 Perhaps I’ll look at the dirty props and check them myself :slightly_smiling_face:
# Sep 2nd 2019, 16:13 neon1024 I tried this, only to realise the Form entity is always dirty
# Sep 2nd 2019, 16:11 neon1024 Maybe if it’s always versioned a save *should* always create a new version :thinking_face: But I don’t want duplicates of the same data :rubberduck:
# Sep 2nd 2019, 16:10 neon1024 Ay dios mio!
# Sep 2nd 2019, 16:10 neon1024 So if I want to conditionally duplicate based on if the data has changed I’m going to need to parse all the properties? :grimacing:
# Sep 2nd 2019, 16:09 neon1024 I have Forms hasMany Questions, and `$form->getDirty === ['questions']` even though the property marshals entities correctly and they have id’s, and the question entities are not dirty
# Sep 2nd 2019, 16:09 dereuromark patching doesnt see/check if the values before and after are identical
# Sep 2nd 2019, 16:06 neon1024 Why would my form always be dirty even if I don’t change it?
# Sep 2nd 2019, 16:02 dereuromark Sure, shouldnt be hard to build in based on the env data coming in
# Sep 2nd 2019, 16:01 yadav.manu36 Hi All Can we create route cache according different different domains. because i have used multiple domain and these domain pointed on a single CakePHP setup
# Sep 2nd 2019, 15:30 spriz @jeremy.halin I added the monolog code to the gist :slightly_smiling_face: Good luck! I have to go now, but feel free to ask any questions
# Sep 2nd 2019, 15:29 neon1024 @val I’d say `$entity->getErrors()`
# Sep 2nd 2019, 15:28 spriz Oh, but we are using it with `monolog` as that is well known to me
# Sep 2nd 2019, 15:26 spriz @jeremy.halin: Take a look at https://gist.github.com/Spriz/2584a07ef489aef2e3667650847f93b2 :slightly_smiling_face:
# Sep 2nd 2019, 15:24 spriz Ah, thanks @neon1024! Jeremy, we are using sentry for both web and cli things
# Sep 2nd 2019, 15:19 neon1024 @spriz :point_up:
# Sep 2nd 2019, 15:06 jeremy.halin Hi, I'm using Sentry to get error reporting. It's working fine with their one line code `Sentry\init(['dsn' => '***']);`, but I'm not sure where to place it. What's the cleanest way ? I've put it in `config/bootstrap.php`. Also, if anyone using a bug reporting tool like Sentry, did you succeed to get errors from CakePHP CLI ? Can't get it work in this mode. Thanks!
# Sep 2nd 2019, 15:05 cnizzardini https://github.com/cnizzardini/cakephp-yummy