# |
Sep 22nd 2011, 11:10 |
DidItAgain |
makes sense |
# |
Sep 22nd 2011, 11:10 |
DidItAgain |
hmm |
# |
Sep 22nd 2011, 11:10 |
dakota |
~badcake |
# |
Sep 22nd 2011, 11:10 |
dakota |
which is different than bad cake |
# |
Sep 22nd 2011, 11:10 |
dakota |
~tell DidItAgain about goodcake |
# |
Sep 22nd 2011, 11:10 |
dakota |
~tell DidItAgain about good-cake |
# |
Sep 22nd 2011, 11:10 |
DidItAgain |
hmm |
# |
Sep 22nd 2011, 11:09 |
dakota |
oh and don't forget about fat models, thin controllers :) |
# |
Sep 22nd 2011, 11:09 |
dakota |
DidItAgain: that is a lot of repetition I see going on there |
# |
Sep 22nd 2011, 11:09 |
fenix` |
thats the manual, 9 times out of 10, the answer is in there. |
# |
Sep 22nd 2011, 11:09 |
dakota |
~tell DidItAgain about dry |
# |
Sep 22nd 2011, 11:09 |
fenix` |
http://book.cakephp.org/view/876/The-Manual |
# |
Sep 22nd 2011, 11:08 |
DidItAgain |
1.3 |
# |
Sep 22nd 2011, 11:08 |
fenix` |
DidItAgain: what version of phpcake are you using? |
# |
Sep 22nd 2011, 11:08 |
dakota |
DidItAgain: you should read it |
# |
Sep 22nd 2011, 11:08 |
dakota |
DidItAgain: it's all in the book |
# |
Sep 22nd 2011, 11:08 |
DidItAgain |
oh.. |
# |
Sep 22nd 2011, 11:08 |
fenix` |
DidItAgain: you should never need $_POST |
# |
Sep 22nd 2011, 11:08 |
dakota |
Well, two choices. Either name your fields properly and access via $this->data, or via $this->params['form'] |
# |
Sep 22nd 2011, 11:08 |
DidItAgain |
that are posted in an AJAX call? |
# |
Sep 22nd 2011, 11:07 |
DidItAgain |
how else do I access post variables? |
# |
Sep 22nd 2011, 11:07 |
dakota |
why are you using $_POST? |
# |
Sep 22nd 2011, 11:07 |
fenix` |
i've solved it, you can't modify $paginate, only assign it a whole new value; |
# |
Sep 22nd 2011, 11:07 |
DidItAgain |
post variables? |
# |
Sep 22nd 2011, 11:07 |
DidItAgain |
? |
# |
Sep 22nd 2011, 11:07 |
dakota |
wtf |
# |
Sep 22nd 2011, 11:07 |
dakota |
DidItAgain: $_POST? |
# |
Sep 22nd 2011, 11:06 |
ujjain |
debug($this->data)? |
# |
Sep 22nd 2011, 11:06 |
DidItAgain |
anyone has an idea why?! |
# |
Sep 22nd 2011, 11:05 |
DidItAgain |
even though id is set |
# |
Sep 22nd 2011, 11:05 |
DidItAgain |
it keeps inserting |
# |
Sep 22nd 2011, 11:05 |
DidItAgain |
that function doesnt update |
# |
Sep 22nd 2011, 11:05 |
DidItAgain |
http://bin.cakephp.org/view/254499356 |
# |
Sep 22nd 2011, 11:04 |
ujjain |
rchavik: right, what if you want to search nodes, news articles, phone numbers, etc. |
# |
Sep 22nd 2011, 11:04 |
diverdude |
rchavik, so i do $ git clone https://github.com/cakephp/cakephp.git;cd cakephp; git branch -a;git tag -l;git checkout 2.0 ? |
# |
Sep 22nd 2011, 11:04 |
dakota |
fenix`: http://www.sabi.co.uk/Notes/linuxHelpAsk.html#bitch |
# |
Sep 22nd 2011, 11:04 |
fenix` |
http://bin.cakephp.org/view/1206680343 |
# |
Sep 22nd 2011, 11:03 |
dakota |
no, not that |
# |
Sep 22nd 2011, 11:03 |
dakota |
fenix`: also read this: wijcalendar |
# |
Sep 22nd 2011, 11:03 |
dakota |
fenix`: dude. don't just throw out random errors to random people. Show us some code please. |
# |
Sep 22nd 2011, 11:02 |
fenix` |
dakota: Indirect modification of overloaded property CharactersController::$paginate has no effect, whats that about? |