# |
Aug 8th 2008, 05:51 |
annnna |
franko: this bit comes from the 1.1 PDF manual which is a gem unparalleled: • dependent: if set to true, the associated model is destroyed when this one is. |
# |
Aug 8th 2008, 05:48 |
annnna |
yep that one. Im trying to find it for you in the cookbook or API for 1.2 but it's there in the 1.1 documentation, which was better |
# |
Aug 8th 2008, 05:48 |
pgcd |
fourcs: bye |
# |
Aug 8th 2008, 05:47 |
fourcs |
Got to go. Hope to see you again. |
# |
Aug 8th 2008, 05:47 |
fourcs |
Glad you got it! |
# |
Aug 8th 2008, 05:46 |
franko |
annnna: cheers, do you mean the model relationship array? will look over the docs again... |
# |
Aug 8th 2008, 05:46 |
pgcd |
and when i do get to it, i try to pretend everything works by squinting very hard =) |
# |
Aug 8th 2008, 05:45 |
annnna |
franko: there are options in the array for that, i think they are the ones called "dependant" and "exclusive" |
# |
Aug 8th 2008, 05:45 |
pgcd |
annnna: IE for development is hell. i avoid it until the very last moment |
# |
Aug 8th 2008, 05:45 |
annnna |
testing is awfully impossible at least for me... |
# |
Aug 8th 2008, 05:44 |
annnna |
imagine what you would've wasted using IE |
# |
Aug 8th 2008, 05:44 |
pgcd |
wasted like hours on this... |
# |
Aug 8th 2008, 05:43 |
pgcd |
fourcs: found the solution. it's the danged firefox caching the danged selects. grrr. |
# |
Aug 8th 2008, 05:43 |
franko |
I have user hasOne registration [dependant], want to delete the associated user when I delete the registration... |
# |
Aug 8th 2008, 05:43 |
franko |
Is there a way to delete the parent of a belongsto relationship? |
# |
Aug 8th 2008, 05:41 |
pgcd |
i haven't pasted it, there's actually no code - i'm just trying to echo a datetime field with a default value (using 'selected' in the options) |
# |
Aug 8th 2008, 05:39 |
fourcs |
what's the url of the code? |
# |
Aug 8th 2008, 05:39 |
pgcd |
guess, even |
# |
Aug 8th 2008, 05:39 |
pgcd |
can't get more exoteric than that, i gues |
# |
Aug 8th 2008, 05:39 |
pgcd |
fourcs: nope. and it's getting sillier: if i drop a debug in form.php, it's fine, otherwise it's wrong |
# |
Aug 8th 2008, 05:37 |
fourcs |
pgcd: did you solve your date problem? |
# |
Aug 8th 2008, 05:32 |
pgcd |
=) |
# |
Aug 8th 2008, 05:32 |
fourcs |
Got to go, Mate. Sorry. |
# |
Aug 8th 2008, 05:31 |
pgcd |
now, if someone would help me with my datetime troubles... =D |
# |
Aug 8th 2008, 05:31 |
fourcs |
pgcd:=) Thanks |
# |
Aug 8th 2008, 05:31 |
pgcd |
fourcs: glad to be of assistance |
# |
Aug 8th 2008, 05:30 |
fourcs |
Got ye! Thanks |
# |
Aug 8th 2008, 05:29 |
pgcd |
fourcs: =) your view was never rendered, you only saw the scaffolded one |
# |
Aug 8th 2008, 05:28 |
fourcs |
Bingo. That did it! How come? |
# |
Aug 8th 2008, 05:26 |
fourcs |
ok |
# |
Aug 8th 2008, 05:26 |
pgcd |
fourcs: try to bake it without using scaffolding, and make sure you have it generate the default actions |
# |
Aug 8th 2008, 05:25 |
pgcd |
this is surreal: if i have a debug() in form.php, the datetime selects are rendered fine, if i don't, then the selects are populated with now() values |
# |
Aug 8th 2008, 05:25 |
fourcs |
I just bake the owners_controller again and got the same file. |
# |
Aug 8th 2008, 05:22 |
fourcs |
ok |
# |
Aug 8th 2008, 05:22 |
pgcd |
fourcs: so i think there might be something else working here. try baking the controller again, maybe? |
# |
Aug 8th 2008, 05:21 |
pgcd |
fourcs: i just tried pasting the code for your radiobox into a form, and it works ok |
# |
Aug 8th 2008, 05:21 |
annnna |
like forcing http//mycakeapp.com to www.mycakeapp.com |
# |
Aug 8th 2008, 05:21 |
annnna |
sorry to bother, has any one tried to modify cake's htaccess to prevent duplication? |
# |
Aug 8th 2008, 05:20 |
fourcs |
http://bin.cakephp.org/view/984646593 is the url of the /views/owners/view.ctp file. |
# |
Aug 8th 2008, 05:18 |
Matts |
butt the value will not get sent when I hit the submit-button |
# |
Aug 8th 2008, 05:18 |
Matts |
and they are all in the same group, and I have checked the HTML-code where all values are OK |