# |
Aug 7th 2008, 16:27 |
beatzombies |
http://bin.cakephp.org/view/141751750 (here is my action) |
# |
Aug 7th 2008, 16:27 |
teknoid |
beatzombies: sure... i'm not following the meaning of the contributed field... |
# |
Aug 7th 2008, 16:26 |
beatzombies |
can i post my controller so that its correctness can be verified? |
# |
Aug 7th 2008, 16:25 |
beatzombies |
pgcd_away: yes it is |
# |
Aug 7th 2008, 16:24 |
beatzombies |
teknoid: There is a field in ContributorsItem, contributed, that I would like to check |
# |
Aug 7th 2008, 16:24 |
pgcd_away |
beatzombies: is your echo on line 77 outputting the correct value? |
# |
Aug 7th 2008, 16:24 |
jaredhoyt |
would that come out Session->read('var_name') or read('varName') |
# |
Aug 7th 2008, 16:24 |
teknoid |
beatzombies: so what do you need to 'check'? |
# |
Aug 7th 2008, 16:24 |
beatzombies |
teknoid: in $params I set the Contributor.id |
# |
Aug 7th 2008, 16:23 |
jaredhoyt |
anyone know offhand if Inflector::variable() is used on Session->write('var_name') ? |
# |
Aug 7th 2008, 16:23 |
beatzombies |
teknoid: the query retrieves all the correct information |
# |
Aug 7th 2008, 16:23 |
beatzombies |
teknoid: Contributor is related to Items by ContributorsItem |
# |
Aug 7th 2008, 16:23 |
beatzombies |
teknoid: I have done the following: $this->data = $this->Contributor->find("first",$params); |
# |
Aug 7th 2008, 16:22 |
teknoid |
beatzombies: did you set $this->data in your controller? |
# |
Aug 7th 2008, 16:21 |
beatzombies |
TommyO: do you know of a way to check this? |
# |
Aug 7th 2008, 16:21 |
beatzombies |
TommyO: as far as i know the model.field i am supplying are correct, but i am not sure |
# |
Aug 7th 2008, 16:21 |
beatzombies |
TommyO: yes, the checkbox expects a field name and optional html attirbutes |
# |
Aug 7th 2008, 16:19 |
TommyO |
beatzombies: have you looked at the API to see exactly what it does and what it expects? |
# |
Aug 7th 2008, 16:19 |
beatzombies |
pgcd_away: yes it is a tinyint(1) in the db |
# |
Aug 7th 2008, 16:19 |
beatzombies |
pgcd_away: i have done the following: echo $form->input('ContributorsItem.contributed'); and it puts a label with a checkbox, but still no checkbox actually being checked |
# |
Aug 7th 2008, 16:18 |
pgcd_away |
(assuming your checkboxes are booleans/tinyints) |
# |
Aug 7th 2008, 16:17 |
pgcd_away |
beatzombies: just an idea: did you try to simply echo an $html->input, as opposed to $html->checkbox? mine work flawlessly, so if yours don't it might be a matter of data, right? |
# |
Aug 7th 2008, 16:16 |
_psychic_ |
jaredhoyt: I got a component from the bakery and repurposed it |
# |
Aug 7th 2008, 16:16 |
jaredhoyt |
ah ok ;) |
# |
Aug 7th 2008, 16:16 |
_psychic_ |
jaredhoyt: only because it was already written :) |
# |
Aug 7th 2008, 16:16 |
jaredhoyt |
_psychic_: thanks, much appreciated ... btw, did you prefer curl over cake's http_socket? |
# |
Aug 7th 2008, 16:15 |
thestaff |
but other than those ? |
# |
Aug 7th 2008, 16:15 |
_psychic_ |
jaredhoyt: http://bin.cakephp.org/view/1411500711 |
# |
Aug 7th 2008, 16:15 |
thestaff |
yeah like dbconfig |
# |
Aug 7th 2008, 16:15 |
teknoid |
thestaff: and probably adjust your config |
# |
Aug 7th 2008, 16:15 |
thestaff |
that's all ? |
# |
Aug 7th 2008, 16:15 |
teknoid |
thestaff: set debug to 0 |
# |
Aug 7th 2008, 16:15 |
jaredhoyt |
thestaff: change debug level for one |
# |
Aug 7th 2008, 16:15 |
thestaff |
what do you need to do when you switch from dvpmt to production ? |
# |
Aug 7th 2008, 16:14 |
jaredhoyt |
... now that i've finished integrating paypal.. lol, figures |
# |
Aug 7th 2008, 16:14 |
cudell |
Warning: Warning (2): extract() [<a href='http://php.net/function.extract'>function.extract</a>]: First argument should be an array in [CORE/cake/libs/cache.php, line 297] |
# |
Aug 7th 2008, 16:14 |
cudell |
Any ideas on this in my error.log... |
# |
Aug 7th 2008, 16:14 |
jaredhoyt |
yeah i'd appreciate that! |
# |
Aug 7th 2008, 16:13 |
_psychic_ |
if you want my component you can have a copy |
# |
Aug 7th 2008, 16:13 |
_psychic_ |
yeah it was easy |
# |
Aug 7th 2008, 16:13 |
jaredhoyt |
excellent :D |