Re: Form data will not save in DB!

2009-05-07 Thread arif hossen
Please follow this code:
if your model name Tax (Model name must be table names singular number)

$this-data['Tax']['feildname'];

$this-Tax-save($this-data);




On Thu, May 7, 2009 at 7:56 AM, Dr. Loboto drlob...@gmail.com wrote:


 Key in data array should be same as model alias. If your model named
 Tax it have same alias Tax by default and require $this-data['Tax']
 ['feildname'].

 On May 7, 2:41 am, paul...@gmail.com paul...@gmail.com wrote:
  I have a table taxes and I'm using the form helper and it is putting
  the form data into an array $this-data['Taxis']['feildname'].  The
  problem is that when I call $this-Tax-save($this-data)); the insert
  sql statement doesn't have any of the values that was submitted via
  the form.
 
  Any ideas on what's going on and how to fix the issue?
 
  Thanks,
  jay
 
  P.S. using cakephp 1.2
 



-- 
Regards,
Mohammad Arif Hossen
Junior Web Developer
United Group International(UGIBD)
Mobile: +88 01714355911

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Form data will not save in DB!

2009-05-06 Thread paul...@gmail.com

I have a table taxes and I'm using the form helper and it is putting
the form data into an array $this-data['Taxis']['feildname'].  The
problem is that when I call $this-Tax-save($this-data)); the insert
sql statement doesn't have any of the values that was submitted via
the form.

Any ideas on what's going on and how to fix the issue?

Thanks,
jay

P.S. using cakephp 1.2
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Form data will not save in DB!

2009-05-06 Thread Dr. Loboto

Key in data array should be same as model alias. If your model named
Tax it have same alias Tax by default and require $this-data['Tax']
['feildname'].

On May 7, 2:41 am, paul...@gmail.com paul...@gmail.com wrote:
 I have a table taxes and I'm using the form helper and it is putting
 the form data into an array $this-data['Taxis']['feildname'].  The
 problem is that when I call $this-Tax-save($this-data)); the insert
 sql statement doesn't have any of the values that was submitted via
 the form.

 Any ideas on what's going on and how to fix the issue?

 Thanks,
 jay

 P.S. using cakephp 1.2
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---