Re: Model without table

2009-03-12 Thread Walther
Bugger, I always get that one wrong, I obviously don't use it enough... On Mar 11, 8: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.

Re: Model without table

2009-03-12 Thread kaushik
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 =

Re: Model without table

2009-03-12 Thread mscdex
On Mar 12, 2:21 am, kaushik kaushikwo...@gmail.com wrote:  var $table = false; As previously noted, it should be $useTable and not $table. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to

Re: Model without table

2009-03-12 Thread brian
On Thu, Mar 12, 2009 at 3:21 AM, mscdex msc...@gmail.com wrote: On Mar 12, 2:21 am, kaushik kaushikwo...@gmail.com wrote:  var $table = false; Also, make the c in contact uppercase:: class Contact extends AppModel --~--~-~--~~~---~--~~ You received this

Re: Model without table

2009-03-11 Thread villas
Check out Jonathan Snook's article: http://snook.ca/archives/cakephp/contact_form_cakephp/ On Mar 10, 8:10 am, kaushik kaushikwo...@gmail.com wrote: I am going to develop a section in a site, where there is no database operation. Only there will a form and a mail will fire on submit of the

Re: Model without table

2009-03-11 Thread mscdex
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

Re: Model without table

2009-03-10 Thread Walther
Just add in your model: var $table = false; That will tell cake that there is no table associated with that model. On Mar 10, 10:10 am, kaushik kaushikwo...@gmail.com wrote: I am going to develop a section in a site, where there is no database operation. Only there will a form and a mail

Re: model without table: contact form (CAKE 1.2.0.54727alpha)

2007-07-23 Thread cakeFreak
by the way, for those that need a contact form these are my views: --- views/contacts/index.ctp