Log message #4201107

# At Username Text
# Sep 3rd 2019, 00:58 FrostCandy well old style didnt work for me. I'll try again. thanks for the help.
# Sep 3rd 2019, 00:58 FrostCandy ok , i'll try it agai. I'm doing a test for a company that doesn't evne use this framework and I've never touched this framework but their HR Department knows best :D
# Sep 3rd 2019, 00:57 cnizzardini But use the new style
# Sep 3rd 2019, 00:57 cnizzardini The old style will still work, it just throws an E_USER_DEPRECATED
# Sep 3rd 2019, 00:57 FrostCandy oh ok
# Sep 3rd 2019, 00:57 FrostCandy oh and the secon done is what i want ?
# Sep 3rd 2019, 00:57 cnizzardini For >= 3.7 use $articlesTable = TableRegistry::getTableLocator()->get('Articles');
# Sep 3rd 2019, 00:57 cnizzardini $articlesTable = TableRegistry::get('Articles'); vs $articlesTable = TableRegistry::getTableLocator()->get('Articles');
# Sep 3rd 2019, 00:57 FrostCandy Well where do i find the >=3.7 doc
# Sep 3rd 2019, 00:56 cnizzardini The man difference is just how you get grab the Table
# Sep 3rd 2019, 00:56 cnizzardini But if you are going to do that, be sure to still bind your parameters
# Sep 3rd 2019, 00:56 cnizzardini Use the framework as intended
# Sep 3rd 2019, 00:56 FrostCandy $results = $connection->execute( ....
# Sep 3rd 2019, 00:56 cnizzardini No don't do that
# Sep 3rd 2019, 00:56 FrostCandy Thanks it's too hard right now to bother learning it. I'll just use the directy queries, it's much easier to understand.
# Sep 3rd 2019, 00:55 cnizzardini // Prior to 3.6.0 $articlesTable = TableRegistry::get('Articles'); // >= 3.7.0 $articlesTable = TableRegistry::getTableLocator()->get('Articles'); $article = $articlesTable->newEntity();
# Sep 3rd 2019, 00:55 cnizzardini FrostCandy, they could've added some additional comments
# Sep 3rd 2019, 00:54 cnizzardini good to know, thanks
# Sep 2nd 2019, 23:08 FrostCandy I'm using 3.8 and everything about datasaving in the cookbook says // Prior to 3.6.0 ? All i need to do is read and write to a database hah. https://book.cakephp.org/3.0/en/orm/saving-data.html#
# Sep 2nd 2019, 22:24 CyberSee but the database does not seem to create
# 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