# |
Sep 23rd 2011, 13:18 |
dakota |
~tell bhp about habtm-alternative |
# |
Sep 23rd 2011, 13:17 |
dakota |
bhp: don't use habtm :) |
# |
Sep 23rd 2011, 13:17 |
bhp |
Any nasty hacks, meantime? |
# |
Sep 23rd 2011, 13:17 |
bhp |
I expect, in a month or 2, 3 I will be able to help you out |
# |
Sep 23rd 2011, 13:16 |
bhp |
But when I have time left (HAHA), I will ;o] |
# |
Sep 23rd 2011, 13:16 |
dakota |
robsdonkarls: so, you ask for help? And when somebody asks for more information so that they can help you, you decide that you don't need help anymore :/ |
# |
Sep 23rd 2011, 13:16 |
bhp |
Which is quite fun already |
# |
Sep 23rd 2011, 13:16 |
bhp |
I am writing a DagBehavior |
# |
Sep 23rd 2011, 13:16 |
bhp |
Hahahaha |
# |
Sep 23rd 2011, 13:16 |
ADmad |
bhp: we are waiting for someone smart enough like you to implemment it |
# |
Sep 23rd 2011, 13:15 |
dakota |
bhp: performance |
# |
Sep 23rd 2011, 13:15 |
dakota |
Then cake won't run it in the second case. HABTM saves don't run callbacks on the join model |
# |
Sep 23rd 2011, 13:15 |
bhp |
;o] |
# |
Sep 23rd 2011, 13:15 |
bhp |
and why not? |
# |
Sep 23rd 2011, 13:15 |
ADmad |
bhp: its because cake does not run behavior callbacks on associated models |
# |
Sep 23rd 2011, 13:15 |
robsdonkarls |
ADmad: nm man, ill figure this out by myself |
# |
Sep 23rd 2011, 13:15 |
bhp |
it is loaded setup is called (working with 2.0-rc1) |
# |
Sep 23rd 2011, 13:15 |
bhp |
correct |
# |
Sep 23rd 2011, 13:15 |
dakota |
bhp: Is the behaviour attached to PropertiesProperty? |
# |
Sep 23rd 2011, 13:14 |
bhp |
â?? my behavior's "beforeSave" is not invoked in the second case. |
# |
Sep 23rd 2011, 13:13 |
bhp |
;o] |
# |
Sep 23rd 2011, 13:13 |
bhp |
WHY?! |
# |
Sep 23rd 2011, 13:13 |
bhp |
However, this all works correctly when I PropertiesProperty->save(); but not when I Property->saveAll(); |
# |
Sep 23rd 2011, 13:12 |
ADmad |
robsdonkarls: am I to use my psychic powers to know what your plugin is and what you have coded in your component? |
# |
Sep 23rd 2011, 13:12 |
bhp |
Now properties_properties has to do some special things for me, so I created a behavior for it. |
# |
Sep 23rd 2011, 13:12 |
bhp |
One called 'properties' which is habtm via 'properties_properties' to a class 'ChildProperties' |
# |
Sep 23rd 2011, 13:11 |
dakota |
bioiq: Guide to the cake shell is here: http://book.cakephp.org/2.0/en/console-and-shells.html |
# |
Sep 23rd 2011, 13:11 |
bhp |
I have various models |
# |
Sep 23rd 2011, 13:10 |
bhp |
I am puzzled by some habtm behavior |
# |
Sep 23rd 2011, 13:10 |
bhp |
Hi Cakers! |
# |
Sep 23rd 2011, 13:08 |
robsdonkarls |
but nothing inside |
# |
Sep 23rd 2011, 13:08 |
robsdonkarls |
to 3 methods, but i have all the 3 of them implemented |
# |
Sep 23rd 2011, 13:07 |
robsdonkarls |
call_user_func_array() expects parameter 1 to be a valid callback, class 'AclReflectorComponent' does not have a method 'startup' [CORE/Cake/Utility/ObjectCollection.php, line 111] |
# |
Sep 23rd 2011, 13:07 |
robsdonkarls |
ADmad: i have implemented 2 components in that plugin i m working on, but keep getting this error below |
# |
Sep 23rd 2011, 13:07 |
bioiq |
ok, I downloaded cakephp2.0 from cakephp.org, extracted it in my /var/www dir, configured the files that had to be configured. I open the url http://localhost/cakephp/ and all is ok... now... how can I use the cake bake command? |
# |
Sep 23rd 2011, 13:03 |
ADmad |
robsdonkarls: making a component in 2.0 is the same as in 1.3, only diff is the filename convention has changed and you do "Foo extends Component" instead of "Foo extends Object" |
# |
Sep 23rd 2011, 13:01 |
nigelb |
g33 |
# |
Sep 23rd 2011, 13:01 |
dakota |
robsdonkarls: Have you tried searching for it? |
# |
Sep 23rd 2011, 13:00 |
robsdonkarls |
i need some help |
# |
Sep 23rd 2011, 12:59 |
robsdonkarls |
hey guys, i coulnt find on cake2 book where they teach you to implement a component |
# |
Sep 23rd 2011, 12:57 |
dakota |
at the big statue |