# |
Sep 22nd 2011, 11:47 |
DidItAgain |
thanks again |
# |
Sep 22nd 2011, 11:47 |
fenix` |
i hope this app is intranet based, becuase it'll have more holes that a block of swiss cheese. |
# |
Sep 22nd 2011, 11:47 |
DidItAgain |
ok, i will start from today |
# |
Sep 22nd 2011, 11:47 |
dakota |
as somebody who has been there and done that, trust me :) |
# |
Sep 22nd 2011, 11:47 |
DidItAgain |
youre right |
# |
Sep 22nd 2011, 11:46 |
dakota |
DidItAgain: you will save countless hours by following cake conventions right now |
# |
Sep 22nd 2011, 11:46 |
DidItAgain |
my code looks horrible doesnt it T_T |
# |
Sep 22nd 2011, 11:46 |
DidItAgain |
dakota: rofl |
# |
Sep 22nd 2011, 11:46 |
DidItAgain |
dakota: I have a demo on 4th, after which Ill learn cake again |
# |
Sep 22nd 2011, 11:46 |
dakota |
DidItAgain: no you won't |
# |
Sep 22nd 2011, 11:46 |
DidItAgain |
dakota: lol, i will.. oct 4th onwards, Im all about cake php coding conventions |
# |
Sep 22nd 2011, 11:45 |
dakota |
DidItAgain: really, get rid of $_POST. We don't need yet another pos PHP application out there |
# |
Sep 22nd 2011, 11:45 |
DidItAgain |
problem really was that the data was getting set before and the id was getting set later |
# |
Sep 22nd 2011, 11:45 |
fenix` |
dakota: yeah never used jquery. |
# |
Sep 22nd 2011, 11:45 |
DidItAgain |
thanks for the help guys |
# |
Sep 22nd 2011, 11:45 |
dakota |
fenix`: well, extjs is simply a javascript framework such as jquery (With quite a bit of ui functionality built in though) |
# |
Sep 22nd 2011, 11:45 |
DidItAgain |
got it working |
# |
Sep 22nd 2011, 11:44 |
fenix` |
i dont know cake well enough or extjs well enough to know if they're compatible. |
# |
Sep 22nd 2011, 11:44 |
dakota |
~tell DidItAgain about ad7six-advice |
# |
Sep 22nd 2011, 11:44 |
DidItAgain |
dakota: ok |
# |
Sep 22nd 2011, 11:44 |
fenix` |
tbh, i have no idea, but it was the response i got from the same question. |
# |
Sep 22nd 2011, 11:43 |
dakota |
DidItAgain: that doesn't change anything |
# |
Sep 22nd 2011, 11:43 |
dakota |
fenix`: how does that change anything regarding the backend? |
# |
Sep 22nd 2011, 11:43 |
DidItAgain |
this function gets exec'd through an AJAX call |
# |
Sep 22nd 2011, 11:43 |
fenix` |
dakota: he's using extjs |
# |
Sep 22nd 2011, 11:42 |
dakota |
DidItAgain: get rid of the $_POST's, kinda negates any reason to use a framework if you aren't going to use the tools that it provides |
# |
Sep 22nd 2011, 11:42 |
diverdude |
got it :) |
# |
Sep 22nd 2011, 11:42 |
dakota |
DidItAgain: create() is only needed if you are saving items in an array |
# |
Sep 22nd 2011, 11:42 |
DidItAgain |
and then try dakotas suggestion |
# |
Sep 22nd 2011, 11:42 |
DidItAgain |
Ill try running it without that statement then? |
# |
Sep 22nd 2011, 11:41 |
fenix` |
DidItAgain: it could be the $this->InstalledBase->create(array()); |
# |
Sep 22nd 2011, 11:41 |
dakota |
DidItAgain: why would it create a problem? |
# |
Sep 22nd 2011, 11:41 |
DidItAgain |
it saves properly, and deletes properly no problems there.. |
# |
Sep 22nd 2011, 11:41 |
DidItAgain |
that wont create a problem? |
# |
Sep 22nd 2011, 11:41 |
DidItAgain |
Im doing a loadModel at the beggining of the function |
# |
Sep 22nd 2011, 11:41 |
ujjain |
just make a fake entry so no sensitive data. |
# |
Sep 22nd 2011, 11:40 |
ujjain |
debug($this->data) and show it. |
# |
Sep 22nd 2011, 11:40 |
ujjain |
13:06 < dakota> DidItAgain: to make it easy you name your post variables "data[server]", "data[vendor]", etc. DidItAgain: and then a simple $this->InstalledBase->save($this->data); is needed |
# |
Sep 22nd 2011, 11:40 |
DidItAgain |
they are the same names that I have my table columns |
# |
Sep 22nd 2011, 11:40 |
DidItAgain |
yes |
# |
Sep 22nd 2011, 11:39 |
dakota |
DidItAgain: Do you have much control over what the field names are? |