# |
Sep 22nd 2011, 14:46 |
EtRiGaN |
and in the view echo $this->Form->input('Credit.payment_operator_id'); |
# |
Sep 22nd 2011, 14:46 |
EtRiGaN |
i get the list of referenced values: $this->set('payment_operators', $this->Credit->PaymentOperator->find('list')); |
# |
Sep 22nd 2011, 14:39 |
jgonca |
TehTreag: thx :) |
# |
Sep 22nd 2011, 14:38 |
EtRiGaN |
when loading a referenced input field in a form, you have to get the list from the referenced model right |
# |
Sep 22nd 2011, 14:37 |
TehTreag |
~tell jgonca about google cakephp multiple pagination same page |
# |
Sep 22nd 2011, 14:37 |
TehTreag |
jgonca: There's an article somewhere... |
# |
Sep 22nd 2011, 14:27 |
jgonca |
another way is to override the <a> link that paginator generates and make an ajax request that will update only the block I want. |
# |
Sep 22nd 2011, 14:26 |
jgonca |
to avoid this, I thought of using ajax, but does Paginator supports two different configurations in the same view? |
# |
Sep 22nd 2011, 14:25 |
jgonca |
I have two pagination block in the same page. Since they use almost the same model, if I click a link to sort one of the blocks, the other block will be sorted the same way. |
# |
Sep 22nd 2011, 14:17 |
Hyra |
Yup. |
# |
Sep 22nd 2011, 14:16 |
TehTreag |
Hyra: More of reading, but not understanding. |
# |
Sep 22nd 2011, 14:16 |
Hyra |
cause that seems to pretty much cover it all |
# |
Sep 22nd 2011, 14:16 |
TehTreag |
Hyra: lol |
# |
Sep 22nd 2011, 14:15 |
Hyra |
You mean other than the SQL at http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html#preparing-our-application ? |
# |
Sep 22nd 2011, 14:15 |
NetersLandreau |
it all depends on who maintains the plugin code if there is a 2.0 compatible version.. |
# |
Sep 22nd 2011, 14:15 |
diverdude |
is it written anywhere what requirements for columns and columntypes are needed for user and group tables before they can work with acl, as described here: http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html#acts-as-a-requester ? |
# |
Sep 22nd 2011, 14:14 |
Hyra |
Afternoons. |
# |
Sep 22nd 2011, 14:14 |
ujjain |
ah ok, I haven't done that much with Cake 2.0, but I like having loads of documentation and don't mind using other people's plugins: Sluggable, Search, Recaptcha, Upload, WYSIWYG |
# |
Sep 22nd 2011, 14:10 |
NetersLandreau |
git checkout -b 2.0-dev origin/2.0-dev |
# |
Sep 22nd 2011, 14:09 |
NetersLandreau |
ujjain: cakedc's sluggable behavior? there is a 2.0-dev branch in that repo |
# |
Sep 22nd 2011, 14:09 |
TehTreag |
asmerkin: cake bake Plugin.Model |
# |
Sep 22nd 2011, 14:08 |
asmerkin |
D |
# |
Sep 22nd 2011, 14:08 |
asmerkin |
i found the issue |
# |
Sep 22nd 2011, 14:08 |
ujjain |
Most Cake 1.3 behaviors like sluggable won't work with 2.0, will they? |
# |
Sep 22nd 2011, 14:07 |
asmerkin |
TehTreag: doesn't work |
# |
Sep 22nd 2011, 14:07 |
Terk |
ujjain: ok |
# |
Sep 22nd 2011, 14:06 |
ujjain |
Terk: I use vim |
# |
Sep 22nd 2011, 14:05 |
TehTreag |
ujjain: ^^ |
# |
Sep 22nd 2011, 14:05 |
TehTreag |
asmerkin: It's a php issue... shouldn't matter which CakePHP. |
# |
Sep 22nd 2011, 14:05 |
asmerkin |
I'm using Cake 2 RC2 by the way |
# |
Sep 22nd 2011, 14:05 |
Terk |
ujjain: php editor? |
# |
Sep 22nd 2011, 14:05 |
asmerkin |
TehTreag: cake bake plugin wines controller |
# |
Sep 22nd 2011, 14:05 |
ujjain |
Terk: Yeah, I did not see a whitespace after ?>, but maybe there was, dont know why it works locally though then. |
# |
Sep 22nd 2011, 14:05 |
asmerkin |
TehTreag: i'm doing that ... but it doesn't work |
# |
Sep 22nd 2011, 14:04 |
TehTreag |
~tell ujjain about whitespace |
# |
Sep 22nd 2011, 14:04 |
ujjain |
I removed ?> from models/behaviours/slugglable.php |
# |
Sep 22nd 2011, 14:04 |
ujjain |
Ok, I edited the plugin, it works now. |
# |
Sep 22nd 2011, 14:03 |
diverdude |
TehTreag, Would these tables: http://bin.cakephp.org/view/349873806 work together with this method http://book.cakephp.org/view/1547/Acts-As-a-Requester ? |
# |
Sep 22nd 2011, 14:03 |
TooMuchCaffeine |
hi |
# |
Sep 22nd 2011, 14:02 |
TehTreag |
asmerkin: Sure, specify -plugin on the command line. |
# |
Sep 22nd 2011, 14:02 |
ujjain |
Ubuntu = dev |