# |
Aug 10th 2008, 04:26 |
darki |
mh okay than i need search for my self - not fine because i'm under time pressure |
# |
Aug 10th 2008, 04:26 |
pgcd |
Neters: no, i mean the names i gave to the fields in the swfu init block |
# |
Aug 10th 2008, 04:25 |
NetersLandreau |
darki: that is a question i have seen debated quite often.. the new way to parse conditions has been lambasted in some circles but the coders end up coming around to the new system.. i just don't recall the exact way to do it atm |
# |
Aug 10th 2008, 04:24 |
darki |
i think i need something like "like" |
# |
Aug 10th 2008, 04:23 |
NetersLandreau |
pgcd: it is in the way you extended the form helper |
# |
Aug 10th 2008, 04:23 |
darki |
neters: should be but why dooes * not work? how can i get all fields beginning with 490 for example? |
# |
Aug 10th 2008, 04:23 |
Traveler0 |
*like |
# |
Aug 10th 2008, 04:23 |
pgcd |
Neters: I managed to populate $this->data (the fields had names like [data][Image][*], while it should have been data[Image][*]) |
# |
Aug 10th 2008, 04:22 |
Traveler0 |
live active = 1 |
# |
Aug 10th 2008, 04:22 |
Traveler0 |
how do i set a model condition? |
# |
Aug 10th 2008, 04:21 |
NetersLandreau |
darki: it would be find('all', array('conditions' => array('field' => 'data'))).. there is a new way of parsing the conditions and you're going to have to examine the API for the exact details on that |
# |
Aug 10th 2008, 04:20 |
darki |
($this->Booking->find('list', array('conditions' => array('booking_id' => '489*')))); gives me an empty array too - seems that * does not work :( |
# |
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? |