Log message #4160127

# At Username Text
# 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
# Jul 18th 2018, 13:15 flavius you reset to default after he leaves
# Jul 18th 2018, 13:15 flavius and it fixes your problem if a player leaves the clan
# Jul 18th 2018, 13:15 flavius every game
# Jul 18th 2018, 13:14 flavius so whats wrong with my point system above, you just need to reset to default every time in order to accommodate this
# Jul 18th 2018, 13:13 turkles but perhaps one season they will say no limit, and another you must move one at a time.. I have no idea.. so I make something to suit any rules
# Jul 18th 2018, 13:13 turkles if you have placed your stronger players at the bottom to start then it's a common thing that they go 5 up to play fewer matches
# Jul 18th 2018, 13:12 turkles that is their example, clubs have their own rules. The one I am making can challenge 5 above them.