# |
Sep 22nd 2011, 11:23 |
dakota |
and I mean the edible type :) |
# |
Sep 22nd 2011, 11:22 |
fenix` |
DidItAgain: have you condidered using bake? |
# |
Sep 22nd 2011, 11:22 |
dakota |
woot, free cake :) |
# |
Sep 22nd 2011, 11:22 |
DidItAgain |
Now how do I go about making sure it updates the record and doesnt save again? |
# |
Sep 22nd 2011, 11:21 |
fenix` |
like if its just an id, i'll create a function like set<varname>($var) |
# |
Sep 22nd 2011, 11:21 |
ujjain |
I know :D |
# |
Sep 22nd 2011, 11:21 |
DidItAgain |
lol |
# |
Sep 22nd 2011, 11:21 |
DidItAgain |
Your name is an Indian city ujjain |
# |
Sep 22nd 2011, 11:21 |
ujjain |
Yeah, I got that. :P |
# |
Sep 22nd 2011, 11:21 |
DidItAgain |
4th largest city in India I mean |
# |
Sep 22nd 2011, 11:21 |
ujjain |
ah ok, pretty impressive. |
# |
Sep 22nd 2011, 11:21 |
DidItAgain |
It is the IT capital of India.. there are over 40,000 IT companies in Bangalore alone |
# |
Sep 22nd 2011, 11:20 |
dakota |
fenix`: ito transporting data |
# |
Sep 22nd 2011, 11:20 |
DidItAgain |
Yes ujjain.. Bangalore is the city Im currently in.. its the 4th largest city in Bangalore, and is somewhat comparable to New York |
# |
Sep 22nd 2011, 11:20 |
dakota |
fenix`: what do you mean? |
# |
Sep 22nd 2011, 11:19 |
fenix` |
to* |
# |
Sep 22nd 2011, 11:19 |
fenix` |
do automatically determine the correct configuration of apps on vms? |
# |
Sep 22nd 2011, 11:19 |
ujjain |
DidItAgain: I was reading "The Flat World" (I forgot name), but is Bangalore the IT capital of India? |
# |
Sep 22nd 2011, 11:19 |
DidItAgain |
im writing a server consolidator |
# |
Sep 22nd 2011, 11:18 |
ujjain |
Yeah, it's supposed to update, especially if you create forms with hidden id field etc. |
# |
Sep 22nd 2011, 11:18 |
DidItAgain |
whats that? |
# |
Sep 22nd 2011, 11:18 |
DidItAgain |
O_O |
# |
Sep 22nd 2011, 11:18 |
fenix` |
DidItAgain: you writing an asset register? |
# |
Sep 22nd 2011, 11:17 |
ujjain |
I have no idea, I am not that experienced with Cakephp yet. |
# |
Sep 22nd 2011, 11:17 |
DidItAgain |
the book says its supposed to update.. now Im confused |
# |
Sep 22nd 2011, 11:16 |
DidItAgain |
while its supposed to update an existing row with the id i passed it |
# |
Sep 22nd 2011, 11:16 |
DidItAgain |
it does ujjain |
# |
Sep 22nd 2011, 11:16 |
DidItAgain |
yes |
# |
Sep 22nd 2011, 11:15 |
ujjain |
DidItAgain: It creates a new entry in MySQL table with formdata with auto-incremeneted id? |
# |
Sep 22nd 2011, 11:15 |
ujjain |
Do you guys think that leaving away the submit-button in a search form would be confusing? (http://www.0900alternatief.net/ - the search button is too low, but I am not sure how I should make it prettier. |
# |
Sep 22nd 2011, 11:15 |
DidItAgain |
but what I dont get is, why isnt cake updating the record even though id is set?! |
# |
Sep 22nd 2011, 11:14 |
DidItAgain |
its not even a working website yet |
# |
Sep 22nd 2011, 11:13 |
fenix` |
is there a better way of transporting data between controllers than session->write/read? |
# |
Sep 22nd 2011, 11:13 |
DidItAgain |
I understand in cake conventions are required to make good end results |
# |
Sep 22nd 2011, 11:12 |
fenix` |
yeah thats the format im used to seeing. |
# |
Sep 22nd 2011, 11:12 |
dakota |
form helper does data[ModelName][field_name] |
# |
Sep 22nd 2011, 11:12 |
fenix` |
ah |
# |
Sep 22nd 2011, 11:11 |
dakota |
fenix`: the form helper does |
# |
Sep 22nd 2011, 11:11 |
dakota |
DidItAgain: and then a simple $this->InstalledBase->save($this->data); is needed |
# |
Sep 22nd 2011, 11:11 |
fenix` |
dakota: does bake do that by default? |
# |
Sep 22nd 2011, 11:11 |
dakota |
DidItAgain: to make it easy you name your post variables "data[server]", "data[vendor]", etc. |