Hi all, I am new to cakephp. I want to create a simple twitter update status bar. I use twitterlibphp. But it can't seems to work. I am not sure what is wrong. Can only deduce that the view has a problem. I simply took the add() view and modify it. Should I be using a form? I also attached my controller method update_status() under tweets_controller.
the url is localhost/twitter/tweets/update_status following localhost/application/controller/action so here's my view. update_status.ctp <div class="tweets form"> <?php echo $form->create('');?> <fieldset> <legend><?php __('Status Update');?></legend> <?php echo $form->input('what are you doing now?'); ?> </fieldset> <?php echo $form->end('Update');?> </div> <div class="actions"> <ul> <li><?php echo $html->link(__('List Tweets', true), array('action' => 'index'));?></li> </ul> </div> update_status() under tweets controller function update_status($id = null) { if (!empty($this->data)) { $status_string = $this->data; $twitter = new Twitter("userid", "pwd,"); if ($twitter->updateStatus($status_string)) { //$this->redirect(array('action'=>'index')); $this->Session- >setFlash(__('The Tweet has been sent', true)); } else { $this->Session->setFlash(__('The Tweet could not be sent. Please, try again.', true)); } } } Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en