# |
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 |
# |
Jan 30th 2014, 20:58 |
todds |
You need some baileys in that coffee |
# |
Jan 30th 2014, 20:58 |
todds |
you're doing it wrong |
# |
Jan 30th 2014, 20:58 |
the-neon |
but it's 11 pm. |
# |
Jan 30th 2014, 20:58 |
the-neon |
I has coffee. |
# |
Jan 30th 2014, 20:58 |
the-neon |
ACTION high fives |
# |
Jan 30th 2014, 20:58 |
BackEndCoder |
ACTION high fives |
# |
Jan 30th 2014, 20:58 |
todds |
TAG TEAM |
# |
Jan 30th 2014, 20:57 |
the-neon |
D |
# |
Jan 30th 2014, 20:57 |
BackEndCoder |
^^ |
# |
Jan 30th 2014, 20:57 |
the-neon |
'data-toggle' => 'collapse' |
# |
Jan 30th 2014, 20:57 |
BackEndCoder |
like 'class'=>'accorion' |
# |
Jan 30th 2014, 20:57 |
the-neon |
you can put those into the options array as normal |
# |
Jan 30th 2014, 20:57 |
BackEndCoder |
in the data array |
# |
Jan 30th 2014, 20:57 |
Nick____ |
how would I put this into a cakephp link? class="accordion-toggle" data-toggle="collapse" data-parent="#leftMenu" |
# |
Jan 30th 2014, 20:55 |
Fatalnix |
LOL |
# |
Jan 30th 2014, 20:55 |
BackEndCoder |
i had a phase when i type ip route all the time |