Log message #114818

# At Username Text
# Aug 10th 2008, 04:49 Martz mak: did you reload mysql privileges?
# Aug 10th 2008, 04:49 mak but i have createds the database and also the user
# Aug 10th 2008, 04:49 mak Martz: i'm getting error Cake is NOT able to connect to the database.
# Aug 10th 2008, 04:48 Martz mukesh: what is your problem/question?
# Aug 10th 2008, 04:48 NetersLandreau pgcd: something like this - http://bin.cakephp.org/view/1299162847
# Aug 10th 2008, 04:48 mukesh intsinstalling..
# Aug 10th 2008, 04:47 mukesh need help in unstalling..
# Aug 10th 2008, 04:47 primeminister my routing http://bin.cakephp.org/view/446177524
# Aug 10th 2008, 04:46 pgcd thank you very much
# Aug 10th 2008, 04:46 NetersLandreau there is such an animal.. moment while i locate the code
# Aug 10th 2008, 04:46 pgcd trying to follow the convention here...
# Aug 10th 2008, 04:46 pgcd Neters: script
# Aug 10th 2008, 04:46 NetersLandreau pgcd: are you talking jquery or scriptaculous?
# Aug 10th 2008, 04:45 primeminister trying the year, month, day stuff
# Aug 10th 2008, 04:45 pgcd ok, i managed to hack the silly thing into working for me... now for the hard part: do you guys happen to know if there is a pre-made prototype function to update a div with the contents of a call?
# Aug 10th 2008, 04:45 primeminister http://book.cakephp.org/view/542/defining-routes
# Aug 10th 2008, 04:45 primeminister he all, wondering if example in book is wrong or (obvious) I do something wrong in my routing
# Aug 10th 2008, 04:45 NetersLandreau or he threw his laptop out the window..
# Aug 10th 2008, 04:44 pgcd ehehehe
# Aug 10th 2008, 04:44 Martz ACTION wonders if darki just deleted his entire cake application in anger
# Aug 10th 2008, 04:44 NetersLandreau i have an authorize.net component that i process payments thru now
# Aug 10th 2008, 04:43 NetersLandreau lol
# Aug 10th 2008, 04:43 pgcd =P
# Aug 10th 2008, 04:43 pgcd Neters: sounds like a good investment! Gimme your paypal id!
# Aug 10th 2008, 04:42 NetersLandreau pgcd: if you believe everything you read, i have a few acres of land in south florida, just west of me, that i can sell you ;)
# Aug 10th 2008, 04:41 Martz darki: link them "normally" in cake and generate your own reference id
# Aug 10th 2008, 04:41 pgcd I guess it's because $this->model->name might not be set as a var with PHP5, maybe?
# Aug 10th 2008, 04:41 Martz darki: the point is - stop trying to mess around with real foreign keys. Make a seperate field for reference/searching made up of the account primary key - and then a counter if you like. Whatever, but dont try and engineer/manage the pk/fk yourself. Just going to end up in the mess
# Aug 10th 2008, 04:40 pgcd Neters: are you sure? I think I found that in the API...
# Aug 10th 2008, 04:40 darki mh must think about that, because 48951 can be the last possible booking_id for this account and then 49052 ist not the nex but 49001 (if you understand what i mean)
# Aug 10th 2008, 04:39 NetersLandreau yes pgcd, i think [$this->model()] should be [{$this->model->name}]
# Aug 10th 2008, 04:39 pgcd Martz =)
# Aug 10th 2008, 04:38 Martz pgcd: great minds ;P
# Aug 10th 2008, 04:38 pgcd Neters: where exactly? in the extendedform thingy?
# Aug 10th 2008, 04:38 Martz darki: but booking_id should be the foreign key of Booking, which has a primary key right? So why not have a seperate field called "reference" and in your beforeSave() or similar, concat the primary key of the account and the foreign key of the booking ID
# Aug 10th 2008, 04:38 pgcd darki: what about a booking_id *and* an auto_increment? then you concat the two and you're set?
# Aug 10th 2008, 04:37 darki so if ha make a booking on account 490 i have to find 49003 as next possible booking id
# Aug 10th 2008, 04:37 darki no booking_id is not the pk - i have differents accounts: 489 490 491 etc. an every account can have booking ids (48901, 49001, 49002 ...)
# Aug 10th 2008, 04:36 Martz darki: no there is more than that, otherwise you would use auto increment?
# Aug 10th 2008, 04:36 darki just want to have the next possible number - doesnt matter if it is a string or an int
# Aug 10th 2008, 04:35 Martz darki: what are you trying to achieve? Whats the bigger picture...