# |
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 |
# |
Jul 20th 2009, 14:37 |
Phally |
and what instance would that be? |
# |
Jul 20th 2009, 14:37 |
ProLoser|Work |
i've tried now both App::import('Model','Category'); |
# |
Jul 20th 2009, 14:37 |
ProLoser|Work |
but i can't get it to work |
# |
Jul 20th 2009, 14:36 |
ProLoser|Work |
so i thought it was perhaps how i'm loading an instance of the model |
# |
Jul 20th 2009, 14:36 |
ProLoser|Work |
went into the respective controller and it runs fine |
# |
Jul 20th 2009, 14:36 |
ProLoser|Work |
trying to run generatetreelist in app_controller, and it's just not working |
# |
Jul 20th 2009, 14:36 |
ProLoser|Work |
well perhaps i should explain my situation |
# |
Jul 20th 2009, 14:36 |
Phally |
ProLoser|Work: or do you mean App::import? |
# |
Jul 20th 2009, 14:35 |
Phally |
~tell ProLoser|Work about understanding models |
# |
Jul 20th 2009, 14:32 |
ProLoser|Work |
or load a model more specifically |
# |
Jul 20th 2009, 14:32 |
ProLoser|Work |
what's the way to load a class without init? |
# |
Jul 20th 2009, 14:29 |
alkemann |
wasnt the problem. got to tinker a little bit :) |
# |
Jul 20th 2009, 14:28 |
gwoo |
alkemann: yeah it should be same order as in actsAs |
# |
Jul 20th 2009, 14:21 |
alkemann |
my drafted is getting in the way of my revision.. |
# |
Jul 20th 2009, 14:21 |
alkemann |
behaviour are called in the order they are declared in the actsAsd right? |
# |
Jul 20th 2009, 13:12 |
nicd |
ok |
# |
Jul 20th 2009, 13:12 |
gwoo |
nicd: ask in #cakephp |
# |
Jul 20th 2009, 13:12 |
nicd |
gwoo, i got it in config/routes.php file right |
# |
Jul 20th 2009, 13:12 |
markstory |
alkemann: yeah, I guess it depends if you have to repeat that save() process anywhere. |
# |
Jul 20th 2009, 13:12 |
nicd |
done |
# |
Jul 20th 2009, 13:11 |
gwoo |
nicd: join #cakephp |
# |
Jul 20th 2009, 13:11 |
alkemann |
markstory: imho the controller is still thin as long it is controller stuff spread over a few more lines |