validate()) { $comment = ORM::factory('comment'); $comment->author = $this->input->post('author'); $comment->email = $this->input->post('email'); $comment->text = $this->input->post('text'); $comment->datetime = time(); $comment->item_id = $item->id; $comment->save(); header("HTTP/1.1 201 Created"); header("Location: " . url::site("comment/{$comment->id}")); } print $form; } /** * Delete existing comment collection. * @see Rest_Controller::_delete($resource) */ public function _delete($item) { throw new Exception("@todo Comment_Controller::_delete NOT IMPLEMENTED"); } }