Log message #3150612

# At Username Text
# Jan 30th 2014, 21:13 Fatalnix I thought so
# Jan 30th 2014, 21:13 BackEndCoder yes
# Jan 30th 2014, 21:13 Fatalnix does PHP not have a sort function?
# Jan 30th 2014, 21:12 BackEndCoder array sort
# Jan 30th 2014, 21:12 BackEndCoder randomly guessing is what i'm really good at
# Jan 30th 2014, 21:12 Nick____ just got to figure out how to reorder child items now :(
# Jan 30th 2014, 21:10 Nick____ ha its ok todds, I just randomly guessed and it worked :)
# Jan 30th 2014, 21:09 todds (sorry again Nick____)
# Jan 30th 2014, 21:08 chris______ lawl "bat mobile" xD
# Jan 30th 2014, 21:08 todds To the Bat Mobile!
# Jan 30th 2014, 21:07 BackEndCoder brb, my bat phone is ringing
# Jan 30th 2014, 21:07 todds derp, ignore me. I'm looking at form() not link().
# Jan 30th 2014, 21:07 todds haha
# Jan 30th 2014, 21:07 Fatalnix doesn't sound very argumentative
# Jan 30th 2014, 21:07 BackEndCoder first arg in a from create is a string afaik
# Jan 30th 2014, 21:07 Fatalnix one arument
# Jan 30th 2014, 21:06 todds backendcoder: right, but he's passing two. :)
# Jan 30th 2014, 21:06 BackEndCoder todds, yeah one arument would be an array
# Jan 30th 2014, 21:05 BackEndCoder Grafikart, its not all made yet, maybe a month
# Jan 30th 2014, 21:05 todds Nick____: strange, the documentation says it only accepts two arguments: http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#creating-form-elements
# Jan 30th 2014, 21:03 Nick____ it seems to work ok, randomly
# Jan 30th 2014, 21:03 todds Nick____: Nope, I -think- they belong in the first array with the other optionsâ?¦.but if it's working then Imma hafta have a look at the documentation
# Jan 30th 2014, 21:01 Nick____ well it seems to work anyway
# Jan 30th 2014, 21:01 Nick____ https://gist.github.com/anonymous/2a02b3d5cc6e75269559 like this i think?
# Jan 30th 2014, 21:00 todds Nick____ (sorry): 'pageurl' => $menucat['Page']['url'], 'attribute' => 'value', etc...
# Jan 30th 2014, 21:00 chris______ ok i see it now, thanks
# Jan 30th 2014, 21:00 chris______ I should not be nor reading nor saving Item from the Order controller
# Jan 30th 2014, 21:00 chris______ oh oh i get it
# Jan 30th 2014, 21:00 BackEndCoder if its a habtm
# Jan 30th 2014, 21:00 BackEndCoder $this->Order->Item
# Jan 30th 2014, 21:00 BackEndCoder if you are ...
# Jan 30th 2014, 21:00 BackEndCoder you shouldn't be saving to the Items model
# Jan 30th 2014, 21:00 chris______ ?
# Jan 30th 2014, 21:00 chris______ what about the Item model
# Jan 30th 2014, 20:59 BackEndCoder if its not relational, it will tell you to do one
# Jan 30th 2014, 20:59 todds Nick___, in the second parameter of link() (array())
# Jan 30th 2014, 20:59 BackEndCoder you can access the OrdersItem model with $this->Order->OrdersItem->...
# Jan 30th 2014, 20:59 BackEndCoder if you are in the orders controller and you are relational
# Jan 30th 2014, 20:59 BackEndCoder yeah i typed it out in my example
# Jan 30th 2014, 20:58 chris______ BackEndCoder: is there any way I could get Item data from the OrdersController? maybe something like $this->Order->OrderItems->Item ?
# Jan 30th 2014, 20:58 Nick____ where would it go in here? https://gist.github.com/anonymous/716614c237d26dda661b it is after pageurl isnt it