As per your direction, i have used this code in model: class contact extends AppModel { var $name = 'Contact'; var $table = false; }
and this code in controller: class ContactsController extends AppController { var $name = 'Contacts'; var $components = array('RequestHandler'); var $helpers = array('Html', 'Form', 'Javascript', 'Validation'); //var $scaffold; function index() { if (!empty($this->data['Contact'])) { //code for mailing $msg = "Successful"; } } } Still it is giving this error: "Missing Database Table Error: Database table contacts for model Contact was not found." What is wrong in my code? On Mar 11, 11:05 pm, mscdex <msc...@gmail.com> wrote: > On Mar 10, 7:32 am, Walther <waltherl...@gmail.com> wrote: > > > Just add in your model: > > > var $table = false; > > Close, it's actually $useTable. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---