thanks Ivan for your time,... this is inplace editor action using jquery,... and this is what I have inside my view:
where do I put form input,...? <p id="editme8" style="float: left; margin: 0 0 10px 10px; border: 1px solid #aaa; width: 735px; padding: 8px 5px 8px 5px; display: block; overflow: hidden;"> <?php if(empty($user_obj['User']['short_status'])): ?> <?php echo ucfirst(__('short status - Max: 200 characters', true)) ?>: <?php else: ?> <?php echo $user_obj['User']['short_status'] ?> <?php endif ?> </p> <?php if($user->is_authorized($user_obj['User']['id'])): ?> <script> $(document).ready(function(){ $("#editme8").editInPlace({ callback: function(unused, enteredText) { return enteredText; }, url: "/users/ajax_short_status/<?php echo $user_obj['User']['id'] ?>", bg_over: "#cff", field_type: "textarea", textarea_rows: "15", textarea_cols: "35", saving_image: "./images/ajax-loader.gif" }); }); </script> <?php endif ?> On Tuesday, October 9, 2012 1:17:59 PM UTC-7, ivnrmc wrote: > > inside your view you need to havesomething like this: > > <?php > > echo $this->Form->create('User'); > echo $this->Form->input('User.short_status'); > echo $this->Form->end(); > > ?> > > and then inside your controller action: > $user['User']['short_status'] = $this->data['User']['short_status']; > > also before save, you need to specify what user exactly are you saving, > something like this: > > $this->User->id = $this->Auth->user('id'); > > > 2012/10/9 Chris <chri...@yahoo.com <javascript:>> > >> hi Ivan,... >> >> it didn't work,... I even tried >> $user['User']['short_status'] = $this->data['User']['short_status']; >> >> no luck,... >> >> >> On Tuesday, October 9, 2012 12:22:57 PM UTC-7, ivnrmc wrote: >> >>> $user['User']['short_status'] = $this->data['User']['value']; >>> >>> >>> >>> 2012/10/9 Chris <chri...@yahoo.com> >>> >>>> hi guys,... I'm in cake 1.3,... please help,... >>>> I can't read form value from inplace editor in a controller,... any >>>> other approch,...? >>>> >>>> $user['User']['short_status'] = $this->params['form']['value']**; >>>> >>>> $this->User->save($user); >>>> echo $user['User']['short_status']; >>>> die(); >>>> >>>> thanks in advance >>>> >>>> -- >>>> Like Us on FaceBook >>>> https://www.facebook.com/**CakePHP<https://www.facebook.com/CakePHP> >>>> Find us on Twitter http://twitter.com/CakePHP >>>> >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "CakePHP" group. >>>> To post to this group, send email to cake...@googlegroups.com. >>>> To unsubscribe from this group, send email to cake-php+u...@** >>>> googlegroups.com. >>>> >>>> Visit this group at >>>> http://groups.google.com/**group/cake-php?hl=en<http://groups.google.com/group/cake-php?hl=en> >>>> . >>>> >>>> >>>> >>> >>> >>> >>> -- >>> *Ivan Rimac*** >>> mail: ivn...@gmail.com >>> *tel: +385 95 555 99 66* >>> *http://ivanrimac.com* >>> >>> -- >> Like Us on FaceBook https://www.facebook.com/CakePHP >> Find us on Twitter http://twitter.com/CakePHP >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CakePHP" group. >> To post to this group, send email to cake...@googlegroups.com<javascript:> >> . >> To unsubscribe from this group, send email to >> cake-php+u...@googlegroups.com <javascript:>. >> Visit this group at http://groups.google.com/group/cake-php?hl=en. >> >> >> > > > > -- > *Ivan Rimac*** > mail: ivn...@gmail.com <javascript:> > *tel: +385 95 555 99 66* > *http://ivanrimac.com* > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.