Hi, > My controller file:: > /********************************************************/ > <?php > class TasksController extends AppController { > var $name = 'Tasks'; > var $helpers = array('Html', 'Form'); > > function index() { > $this->set('tasks', $this->Task->findAll()); > } > > function add() { > if (!empty($this->data)) { > $this->Task->create(); > if ($this->Task->save($this->data)) { > $this->Session->setFlash('The Task has been saved'); > $this->redirect(array('action'=>'index'), null, true); > } else { > $this->Session->setFlash('Task not saved. Try again.'); > } > } > } > > } // END - class > > ?> > /********************************************************/ > > My View page add.ctp... > /********************************************************/ > <?php echo $form->create('Task');?> > <fieldset> > <legend>Add New Task</legend> > <?php > echo $form->input('title'); > echo $form->input('done'); > ?> > </fieldset> > <?php echo $form->end('Add Task'); ?> > /********************************************************/ > > on browsing page "add" that error occures
Hm, what CakePHP version do you use? (see cake/VERSION.txt) And what's the exact error message you get? -- Daniel Hofstetter http://cakebaker.42dh.com --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---