I am working with CakePHP 1.3.13. Here I have writen a code to insert form in to database.
Here, deals database table looks like below.
Only those columns/fields will be saved that are present in the cached database table schema, so when adding fields after CakePHP has already cached it, you'll have to clear the cache (delete app/tmp/cache/models
) in order for the new columns to be recognized.
Modifying
app/Config/core.php
Config::write('debug',2);
Refreshing a page and restoring
Config::write('debug');
to original value will also work.