Hi All, I have a form->create code like below :
echo $form->create('Product', array('url'=>'/products/delete/' . $product['Product']['id'])); But it return errors as follows : ============================================================== Notice (8): Undefined index: id [CORE\cake\libs\view\helpers\form.php, line 205] Context | Code -------------------------------------------------------------------------------------------------------- $model = "Product" $options = array() $defaultModel = null $data = array("fields" => array, "sizes" => array, "key" => "id", "validates" => array) $view = View object $object = Product object $models = array(0 => "product", 1 => "dealer", 2 => "aro", 3 => "aco", 4 => "permission", 5 => "tree_behavior", 6 => "view") $currentModel = "view" $currentObject = View object $append = " " $id = false $created = false $fields = Set object $fieldNames = array(0 => "id", 1 => "title", 2 => "dealer_id", 3 => "description") $fieldTypes = array(0 => "integer", 1 => "string", 2 => "integer", 3 => "binary") $fieldLengths = array(0 => 10, 1 => 255, 2 => 10, 3 => null) $habtm = array() $htmlAttributes = array("method" => "post", "action" => "/iklanbaris/products/delete/6") -------------------------------------------------------------------------------------------------------- if (isset($this->params['_Token']) && !empty($this->params['_Token'])) { $append .= '<p style="display: inline; margin: 0px; padding: 0px;">'; $append .= $this->hidden('_Token/key', array('value' => $this->params['_Token']['key'], 'id' => $options['id'] . 'Token' . mt_rand())); $append .= '</p>'; -------------------------------------------------------------------------------------------------------- FormHelper::create() - CORE\cake\libs\view\helpers\form.php, line 205 include - CORE\app\views\products\index.ctp, line 23 View::_render() - CORE\cake\libs\view\view.php, line 772 View::render() - CORE\cake\libs\view\view.php, line 337 Controller::render() - CORE\cake\libs\controller\controller.php, line 663 Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 356 Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 333 [main] - CORE\app\webroot\index.php, line 83 ============================================================== What's wrong ? Regards, Feris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---