Page 16 of 36,922, showing 100 records out of 3,692,143 total, starting on record 1,501, ending on 1,600
# | Username | Text | |
---|---|---|---|
# | Aug 7th 2008, 01:07 | Traveler6 | like I want to have a check in the controller |
# | Aug 7th 2008, 01:07 | TonkaTruck | Eddie_CRO: I didn't even notice that when you originally pasted it. |
# | Aug 7th 2008, 01:07 | Eddie_CRO | aaaa |
# | Aug 7th 2008, 01:07 | Eddie_CRO | ok, will try. |
# | Aug 7th 2008, 01:08 | TonkaTruck | Eddie_CRO: That last sentence of the containable page contains some very key info....that contain() can use standard Model->find() options. |
# | Aug 7th 2008, 01:09 | polerin | Traveler6: there is probably better way to do it, and if you dig into the model source you can likely find it, but first off I would check for the existance of the model's id field in the data. If it's not there it's likely that it's a insert... if it is there genrally it's going to be an update, but you can check by calling exists() |
# | Aug 7th 2008, 01:10 | polerin | Traveler6: I'm sure there is a MUCH better way of doing it, but that's about the best I can give you at 1:30 in the morning and no time to go digging in code |
# | Aug 7th 2008, 01:10 | polerin | only reason I'm suggesting the call to exists() is for models that don't have an auto-incrementing or creating id field, you'd obviously need to have the id for the insert |
# | Aug 7th 2008, 01:10 | polerin | so it's existance is not a dead give |
# | Aug 7th 2008, 01:11 | Traveler6 | that seems like a pretty complicated solution |
# | Aug 7th 2008, 01:11 | polerin | if you want to go digging yourself, I reccomend looking at what Model::create() does to the object |
# | Aug 7th 2008, 01:11 | Traveler6 | ok |
# | Aug 7th 2008, 01:11 | polerin | that's a starting place at least |
# | Aug 7th 2008, 01:12 | Traveler6 | yeah |
# | Aug 7th 2008, 01:15 | Eddie_CRO | not working. but got something different. will try to do it, have to go now. |
# | Aug 7th 2008, 01:15 | Eddie_CRO | thanks anyway! |
# | Aug 7th 2008, 01:28 | achew22 | primeminister: |
# | Aug 7th 2008, 01:28 | achew22 | would you like to see something cool? |
# | Aug 7th 2008, 01:28 | primeminister | achew22: morning. how are you |
# | Aug 7th 2008, 01:28 | primeminister | and yes! |
# | Aug 7th 2008, 01:28 | achew22 | awesome thanks to this |
# | Aug 7th 2008, 01:29 | achew22 | primeminister: http://bin.cakephp.org/view/468901659 |
# | Aug 7th 2008, 01:29 | achew22 | muahahaha |
# | Aug 7th 2008, 01:29 | primeminister | ACTION looking for cheap tickets to argentina in december :) |
# | Aug 7th 2008, 01:30 | primeminister | achew22: if you define that as a webservice and map it then Model::save() will send it? or save it to the database? |
# | Aug 7th 2008, 01:31 | achew22 | its damn cool, it turns that into a nested array that fits perfectly into saveall |
# | Aug 7th 2008, 01:31 | achew22 | those should be saveall |
# | Aug 7th 2008, 01:31 | primeminister | ) |
# | Aug 7th 2008, 01:31 | Traveler6 | how do i check if a page is cached? |
# | Aug 7th 2008, 01:31 | achew22 | primeminister: saving me hours on working those arrays out the hard way |
# | Aug 7th 2008, 01:31 | primeminister | achew22: nirmally you do a saveAll? But now it is handled by save! |
# | Aug 7th 2008, 01:31 | achew22 | save did it perfectly |
# | Aug 7th 2008, 01:31 | achew22 | strangely enough |
# | Aug 7th 2008, 01:31 | primeminister | cool! |
# | Aug 7th 2008, 01:32 | achew22 | lol I guess |
# | Aug 7th 2008, 01:32 | achew22 | no more web service crap |
# | Aug 7th 2008, 01:32 | Traveler6 | this chat is busy |
# | Aug 7th 2008, 01:32 | achew22 | primeminister and I are just really loud |
# | Aug 7th 2008, 01:32 | primeminister | D MUWAHAHAHAHAHAH |
# | Aug 7th 2008, 01:32 | primeminister | *** EEEEEEEVIL **** |
# | Aug 7th 2008, 01:33 | achew22 | lol |
# | Aug 7th 2008, 01:33 | Kitara | m00 |
# | Aug 7th 2008, 01:33 | achew22 | primeminister: anyways, those are xpaths on the right and on the left it puts them in (the 1st one as an example) $results[$I]['Transaction']['guid'] = $guid |
# | Aug 7th 2008, 01:34 | primeminister | achew22: and map will do the magic? |
# | Aug 7th 2008, 01:34 | achew22 | yep |
# | Aug 7th 2008, 01:34 | primeminister | achew22: sorry, never seen something like this :) |
# | Aug 7th 2008, 01:34 | achew22 | no worries |
# | Aug 7th 2008, 01:34 | achew22 | its unique to me I think |
# | Aug 7th 2008, 01:34 | Kitara | who ever got acl working with groups ? :) |
# | Aug 7th 2008, 01:34 | primeminister | achew22: :D |
# | Aug 7th 2008, 01:34 | achew22 | the date there is in the right format but on another service its given in one of the RFC formats |
# | Aug 7th 2008, 01:35 | primeminister | achew22: nice thing that map! I will have to read thise things |
# | Aug 7th 2008, 01:35 | achew22 | so I do this there 'Account.modified' => array('date', '/Accounts/Account/last-uploaded-at/value') and it calls the __date function inside the WebService script |
# | Aug 7th 2008, 01:35 | achew22 | primeminister: I think it may be unique to me -- I wrote it |
# | Aug 7th 2008, 01:35 | primeminister | achew22: AH!!! :) |
# | Aug 7th 2008, 01:35 | achew22 | that's probably why |
# | Aug 7th 2008, 01:35 | primeminister | way cool! |
# | Aug 7th 2008, 01:35 | poluta1 | ho hoo i got new problem with Extendable |
# | Aug 7th 2008, 01:36 | primeminister | achew22: gimme gimme wannahave wannahave |
# | Aug 7th 2008, 01:36 | primeminister | ) |
# | Aug 7th 2008, 01:36 | poluta1 | how to save with sub class ? |
# | Aug 7th 2008, 01:36 | achew22 | and its Xpath so you can do all the manipulation in xpath now (which I think I am starting to get a grip of) |
# | Aug 7th 2008, 01:36 | poluta1 | $this->Listener->create(); $this->Listener->save() not work |
# | Aug 7th 2008, 01:36 | achew22 | primeminister: I want to contribute it to core but I want to take it even futher I want to make a datasource out of it t |
# | Aug 7th 2008, 01:36 | primeminister | achew22: and now doing it with regexp in perl |
# | Aug 7th 2008, 01:36 | achew22 | eew |
# | Aug 7th 2008, 01:37 | primeminister | achew22: :) Yeah I know |
# | Aug 7th 2008, 01:37 | primeminister | achew22: plan is to do it with xpath |
# | Aug 7th 2008, 01:37 | primeminister | sooo.... |
# | Aug 7th 2008, 01:37 | achew22 | then set the datasource in the model to 'WesabiAccount' then be able to do $this->Account->find('all') and have it pull that from the web |
# | Aug 7th 2008, 01:37 | achew22 | is it all xml? |
# | Aug 7th 2008, 01:37 | tomas- | how can i get the current model object within a view? I have some presentational functions specific to a model (that the controller needs as well) |
# | Aug 7th 2008, 01:38 | achew22 | tomas-: do it in the controller then $this->set it for the view |
# | Aug 7th 2008, 01:38 | primeminister | achew22: sounds really cool! |
# | Aug 7th 2008, 01:38 | primeminister | achew22: and no. crappy html, but some tricks |
# | Aug 7th 2008, 01:38 | primeminister | achew22: have to go!!! |
# | Aug 7th 2008, 01:38 | tomas- | achew22, i would except this content is in a related record, not the main record itself |
# | Aug 7th 2008, 01:39 | TonkaTruck | Is Sluggable behavior built into 1.2? |
# | Aug 7th 2008, 01:42 | thestaff | I need some help with my modalbox :'( |
# | Aug 7th 2008, 01:42 | achew22 | thestaff: are you really at MIT? |
# | Aug 7th 2008, 01:42 | thestaff | yeah |
# | Aug 7th 2008, 01:42 | thestaff | why ? |
# | Aug 7th 2008, 01:42 | achew22 | you should be able to figure it out ;) |
# | Aug 7th 2008, 01:42 | thestaff | hehe |
# | Aug 7th 2008, 01:42 | achew22 | undergrad? |
# | Aug 7th 2008, 01:42 | thestaff | well i have 5 days of cakephp |
# | Aug 7th 2008, 01:42 | achew22 | no worries |
# | Aug 7th 2008, 01:42 | thestaff | no grad |
# | Aug 7th 2008, 01:42 | achew22 | are you doing CS? |
# | Aug 7th 2008, 01:42 | thestaff | master's |
# | Aug 7th 2008, 01:42 | achew22 | oh |
# | Aug 7th 2008, 01:43 | achew22 | computer related study? |
# | Aug 7th 2008, 01:43 | thestaff | kinda, i'm crossing to neuroscience |
# | Aug 7th 2008, 01:43 | achew22 | or are you a mech-e convert? |
# | Aug 7th 2008, 01:43 | achew22 | ah |
# | Aug 7th 2008, 01:43 | achew22 | how are you making your modal box? |
# | Aug 7th 2008, 01:43 | thestaff | bio inspired AI |
# | Aug 7th 2008, 01:43 | thestaff | well i used the tuto |
# | Aug 7th 2008, 01:43 | thestaff | it kinda works |
# | Aug 7th 2008, 01:44 | achew22 | is this a js library's modal window? |