What exactly does the structure of $this->data look like? 

On Friday, June 1, 2012 9:05:13 PM UTC-4, Jeff Huang wrote:
>
> I already sent two days tried to solve this problem but havent found 
> out the solution. Basically the problem is, when I followed the Blog 
> tutorial on CakePHP cookbook, my add() action didn't actually insert 
> "title" and "body" from the add.ctp view to the "posts" database. 
> Other fields like "created" and "modified" work well, but "title" and 
> "body" are all NULLs. 
>
> The SQL query message shows: "INSERT INTO inteco_LoungeBoard.posts 
> (modified, created) VALUES ('2012-06-02 00:52:12', '2012-06-02 
> 00:52:12')" 
>
> which obviously the "title" and "body" fields were lost. 
>
> I've already checked 
>
> 1. The app/tmp is writable 
>
> 2. beforeSave() return true 
>
> 3. I've traced to the core Model.php, the $this->data shows properly, 
> with all the "title" and "body" information I typed in to the 
> add.ctp's form. However, it seems like when these two fields got drop 
> out once Model perform INSERT. 
>
> 4. Delete the cache and restart again 
>
> I've tried this both on 
>
> 1. a Apache server, with PHP 5.2.8, using CakePHP 2.1.3 
>
> 2. one the localhost, using Mac OS X, with XAMPP, PHP 5.3.8. 
>
> Please help me with this... 
>
> I got the same problems from both platform.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to