Log message #4160134

# At Username Text
# Jul 18th 2018, 13:37 flavius shut up @josbeir, he's got enough problems as it is :P
# Jul 18th 2018, 13:37 josbeir i just ate...
# Jul 18th 2018, 13:37 josbeir shit @mr.mjsm do something about those brackets
# Jul 18th 2018, 13:36 mr.mjsm i really don't know what i am doing wrong
# Jul 18th 2018, 13:36 mr.mjsm @admad everything was working fine, what I wanted instead of creating the email in a separate page i wanted to force the creating of at least one email with the company.
# Jul 18th 2018, 13:34 admad @mr.mjsm here's what I suggest. Start with a copy of database with proper names as per conventions. Then bake will do most of the things for you. Once you have everything working then you will just have to use ->setTable() in the table class to use the wacky table names like "companys"
# Jul 18th 2018, 13:33 turkles or need a set in the above at the end
# Jul 18th 2018, 13:33 turkles you don't need the else
# Jul 18th 2018, 13:33 turkles but that won't exist if it fails
# Jul 18th 2018, 13:33 mr.mjsm yup
# Jul 18th 2018, 13:32 flavius `$this->set(compact('company'));`
# Jul 18th 2018, 13:32 flavius it should work, you have that else statement there which sets the variable $company in your view
# Jul 18th 2018, 13:31 mr.mjsm i am not the one who designed the database ;(
# Jul 18th 2018, 13:30 flavius that should work but like somebody else told you... the plural for companies is just that, not companys
# Jul 18th 2018, 13:29 flavius holy shit nice brackets :P
# Jul 18th 2018, 13:27 mr.mjsm File uploaded https://cakesf.slack.com/files/UBN7KUDRA/FBSQT41GV/-.php / https://slack-files.com/T053DPNCM-FBSQT41GV-3a6739b0d1
# Jul 18th 2018, 13:27 mr.mjsm i didn't remove anything from there just added extra things. here is the code
# Jul 18th 2018, 13:26 flavius you changed the controller, do you still have $this->set('company', $company) in your add action?
# Jul 18th 2018, 13:26 turkles ha, I have no problem with pay to win if I run the game.. but it sucks when I am just a player. I am too poor.
# Jul 18th 2018, 13:25 mr.mjsm this is line 14 "<?= $this->Form->create($company) ?>"
# Jul 18th 2018, 13:25 flavius :P
# Jul 18th 2018, 13:25 flavius GET HIM OUT OF HERE
# Jul 18th 2018, 13:25 turkles top dawg has to look over his shoulder
# Jul 18th 2018, 13:25 flavius PAY 2 WIN
# Jul 18th 2018, 13:25 mr.mjsm any idea how to solve this problem "Undefined variable: company [APP/Template\Companys\add.ctp, line 14]" it used to work fine. but i made some changes in the add method in the controller. i don't see why it affected the variable in the add page! i didn't change much there. all i did was loading a model to submit 2 forms at once.
# Jul 18th 2018, 13:25 flavius WHAT
# Jul 18th 2018, 13:25 turkles yeah but fair is no fun
# Jul 18th 2018, 13:25 flavius that should be more fair than what you're proposing
# Jul 18th 2018, 13:24 turkles yeah that
# Jul 18th 2018, 13:24 flavius ELO
# Jul 18th 2018, 13:24 turkles so you like ILO
# Jul 18th 2018, 13:23 flavius and then rank 5 gets closer but not rank 1, maybe rank 2 ... and previous rank 2 is now rank 1
# Jul 18th 2018, 13:22 flavius which should make previous rank 1 into 2 or 3 or even 4, depending on the difference between 1 and 2
# Jul 18th 2018, 13:22 flavius rank 5 beating rank 1, rank 5 gets a lot more points than if he beat rank 4... and rank 1 will also loose a shit ton of points if he looses to a rank 5
# Jul 18th 2018, 13:21 flavius should be like this
# Jul 18th 2018, 13:21 flavius but this is still wrong imho
# Jul 18th 2018, 13:20 turkles yes
# Jul 18th 2018, 13:19 flavius and you will only renumber all of the players from that clan, not all of the players from all the clans, right?
# Jul 18th 2018, 13:17 flavius easier to do?
# Jul 18th 2018, 13:17 turkles nothing wrong with it, but I don't see how it is that different
# Jul 18th 2018, 13:16 turkles which means you are basically renumbering all players every game, rather than a small number if the game requires a rerank