Log message #114741

# At Username Text
# Aug 10th 2008, 04:19 NetersLandreau pgcd: in the future, you should be able to use css to get your icons, etc
# Aug 10th 2008, 04:18 darki % does not work - ok i will try find
# Aug 10th 2008, 04:18 pgcd I wouldn't know about wildcards with ints, tho
# Aug 10th 2008, 04:17 NetersLandreau darki: findByModel has been deprecated.. use find instead, it is more powerful
# Aug 10th 2008, 04:17 pgcd )
# Aug 10th 2008, 04:17 pgcd (if it's a string
# Aug 10th 2008, 04:17 pgcd darki: use % instead of *
# Aug 10th 2008, 04:17 darki how can i use wildcards in findAllBy? --> $this->Booking->findAllByBooking_id('489*') does not work
# Aug 10th 2008, 04:17 NetersLandreau hmm.. i think your problem probably sits in that code.. have you tried just using the cakephp default form helper?
# Aug 10th 2008, 04:17 pgcd (icon + applet, i mean)
# Aug 10th 2008, 04:16 pgcd in the future, I'll use it to add stuff like a calendar icon etc
# Aug 10th 2008, 04:15 pgcd only overrides $form->input()
# Aug 10th 2008, 04:15 pgcd Neters: a basic form with defaults for datetime fields, ATM
# Aug 10th 2008, 04:14 NetersLandreau pgcd: what is $extendedform?
# Aug 10th 2008, 04:13 pgcd Neters: thank you =) http://bin.cakephp.org/view/2133710879
# Aug 10th 2008, 04:12 NetersLandreau dude, i don't look at how messy the house is.. ;)
# Aug 10th 2008, 04:11 pgcd here i go - please keep in mind it's a work in progress =)
# Aug 10th 2008, 04:11 pgcd Neters: and that even if i set the post_params in swfu to names like data[Image][foreign_id]
# Aug 10th 2008, 04:11 NetersLandreau pgcd: bin you form view code
# Aug 10th 2008, 04:11 pgcd Neters: absolutely nothing, that's what bothers me
# Aug 10th 2008, 04:11 pgcd i suppose I could start from scratch and employ a completely different logic - something like, uploading all the files and generating all the required fields/forms to save the stuff
# Aug 10th 2008, 04:10 NetersLandreau pgcd: what is in $this->data?
# Aug 10th 2008, 04:10 pgcd Neters: the actual files are copied to the right directory etc, yes. The problem is that I also have a caption and a foreignId (and some more stuff), and I wanted to store them in the database for each file, but the data gets passed as $this->params[form], as opposed to $this-data, and cake doesn't recognize $model->save($this->params[form])
# Aug 10th 2008, 04:07 NetersLandreau pgcd: are the files being saved correctly?
# Aug 10th 2008, 04:06 NetersLandreau swfupload is mainly for your files.. the rest of the data is handled outside the component
# Aug 10th 2008, 04:05 pgcd I have several fields that I need to save() along with the actual files
# Aug 10th 2008, 04:04 pgcd Neters: I used to think so =) now I'm not so sure... anyway - the uploading part is fine; what I can't use is the rest of the data in the form
# Aug 10th 2008, 04:04 NetersLandreau what i mean by that is non-cakephp..
# Aug 10th 2008, 04:03 NetersLandreau pgcd: do you have a firm grasp of what is going on with a file upload at the basic level?
# Aug 10th 2008, 04:03 NetersLandreau auth can be daunting at first, but it is really a pussycay
# Aug 10th 2008, 04:02 pgcd Neters: then I'm doing something seriously wrong, because revillini's code is not working at all for me... =|
# Aug 10th 2008, 04:02 NetersLandreau ammadsaleem: if you implement the auth component, redirecting a user back to the page they were looking at prior to the login is, pardon the expression, cake ;)
# Aug 10th 2008, 04:00 NetersLandreau pgcd: it does appear that revillini's code is the method being used.. even tho it was created for cake 1.1, the component logic is basically the same and it works for 1.2
# Aug 10th 2008, 03:57 ammadsaleem no :(
# Aug 10th 2008, 03:55 pgcd Neters: thank you
# Aug 10th 2008, 03:52 darki or do i have to order them desc and just take the first one to get the biggest?
# Aug 10th 2008, 03:50 darki is there a findBy method which gives me the biggest filed? i.e. ich have 49001 49002 and 49003 so this methid gives me 49003 and i can calculate ne next numer bei adding 1?
# Aug 10th 2008, 03:50 NetersLandreau moment pgcd.. there is a newer one out there for 1.2.. lemme see if i can locate it
# Aug 10th 2008, 03:50 pgcd so i'm doing it all by hand
# Aug 10th 2008, 03:49 pgcd Neters: i tried using James Revillini's one, but it's for cake1.1 and swfu1.x, and I'm using 1.2 with swfu2.1...
# Aug 10th 2008, 03:48 NetersLandreau pgcd: do you have a swfupload component, or something?