# |
Jul 20th 2009, 15:14 |
ADmad |
) |
# |
Jul 20th 2009, 15:14 |
alkemann |
that works :) |
# |
Jul 20th 2009, 15:14 |
ADmad |
$this->ArticlePage->Behaviors->disable('Revision') |
# |
Jul 20th 2009, 15:13 |
alkemann |
undefined method |
# |
Jul 20th 2009, 15:13 |
ADmad |
try calling disable() https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/behavior.php#L371 |
# |
Jul 20th 2009, 15:12 |
ADmad |
https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/behavior.php#L453 |
# |
Jul 20th 2009, 15:11 |
alkemann |
u sure that isnt something that people build into their behaviors? |
# |
Jul 20th 2009, 15:11 |
ADmad |
yup |
# |
Jul 20th 2009, 15:11 |
alkemann |
$this->ArticlePage->Behaviors->Revision->enabled = false; right? |
# |
Jul 20th 2009, 15:11 |
alkemann |
did not work * |
# |
Jul 20th 2009, 15:11 |
alkemann |
ADmad: did work |
# |
Jul 20th 2009, 15:10 |
alkemann |
interesting.. |
# |
Jul 20th 2009, 15:09 |
ADmad |
its inbuilt.. set enabled false and no callbacks for that behavior will be trigerred |
# |
Jul 20th 2009, 15:08 |
alkemann |
didnt know i had that feature |
# |
Jul 20th 2009, 15:08 |
ADmad |
alkemann: $this->ArticlePage->Behaviors->Revision->settings['ArticlePage']['auto'] = false; why do you use that instead of just disabling behavior with Revision->enabed = false ? |
# |
Jul 20th 2009, 15:04 |
alkemann |
hah |
# |
Jul 20th 2009, 15:04 |
Phally |
ACTION pictures 10 storm troopers dancing with macbooks instead of weapons |
# |
Jul 20th 2009, 15:04 |
ProLoser|Work |
what music were you guys listening to anyways? |
# |
Jul 20th 2009, 15:04 |
alkemann |
head bang* |
# |
Jul 20th 2009, 15:03 |
alkemann |
Predominant has a mad hang bang with his 5 feet long hair |
# |
Jul 20th 2009, 15:03 |
ADmad |
geeks dancing... now that surely wont be a pretty sight |
# |
Jul 20th 2009, 15:03 |
Phally |
haha |
# |
Jul 20th 2009, 15:02 |
alkemann |
heh. you should have seen us dancing at the Diamon Lounge in Berlin.. we all got 2 left feet |
# |
Jul 20th 2009, 15:01 |
ADmad |
i got 2 left feet so i dont understand what you are saying |
# |
Jul 20th 2009, 15:01 |
alkemann |
not hacks. just a little to explicit |
# |
Jul 20th 2009, 15:00 |
Phally |
that is your tap dancing? could have been worse |
# |
Jul 20th 2009, 14:58 |
alkemann |
gotta call revision creation after a draft creation, as the edited fields are removed from the model, so revision cant see change. and have to turn off revision creation when drafts are accepted |
# |
Jul 20th 2009, 14:57 |
alkemann |
Phally: http://thechaw.com/bakery/commits/view/36d5d0317123f6da18974dd1b894daad1f621bf3#highlight |
# |
Jul 20th 2009, 14:55 |
alkemann |
sigh.. got a green line of 31 passes, but doing some minor tap dancing. well well optimize later |
# |
Jul 20th 2009, 14:42 |
ProLoser|Work |
at least progress lol |
# |
Jul 20th 2009, 14:42 |
Phally |
hmm maybe someone in #cakephp knows |
# |
Jul 20th 2009, 14:41 |
ProLoser|Work |
strange, still not working |
# |
Jul 20th 2009, 14:40 |
ProLoser|Work |
thank you |
# |
Jul 20th 2009, 14:39 |
ProLoser|Work |
DAMNIT you're right, i forgot i moved the model into a plugin |
# |
Jul 20th 2009, 14:39 |
ProLoser|Work |
ah |
# |
Jul 20th 2009, 14:39 |
Phally |
i was wondering if you have checked if init() really is returning that instance |
# |
Jul 20th 2009, 14:39 |
ProLoser|Work |
!bin |
# |
Jul 20th 2009, 14:38 |
ProLoser|Work |
my Category model, i may be confused as to what info you're asking for |
# |
Jul 20th 2009, 14:38 |
Phally |
so do I |
# |
Jul 20th 2009, 14:38 |
ProLoser|Work |
uh well, not an instance as in 'record' per se, i just mean the class |
# |
Jul 20th 2009, 14:37 |
ProLoser|Work |
and also classregistry init |