http://book.cakephp.org/view/66/models#automagic-model-fields-68

if they exist they are managed by cakephp

On Mon, Feb 25, 2008 at 12:29 AM, Kishor <[EMAIL PROTECTED]> wrote:
>
>
>  Hi friends I've implemented cake blog tutorial from cake manual and
>  it's work perfect.But i'm confuse how cake model save method
>  works.Means
>  this blog tutorial use posts table
>
>  CREATE TABLE posts (
>     id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
>     title VARCHAR(50),
>     body TEXT,
>     created DATETIME DEFAULT NULL,
>     modified DATETIME DEFAULT NULL
>  );
>
>
>  And for add/edit view contains only title and body fields then how
>  remaining fields cake calculates
>
>  means "created" and "modified". I've added one extra field to table
>  but while adding new entry it only takes above fields
>
>  INSERT INTO `posts` (`title`,`body`,`created`,`modified`) VALUES
>  ('test','test purpose','2008-02-25 07:26:38','2008-02-25 07:26:38')
>
>  So Can any one explain me how it works ? I
>
>  >
>



-- 
-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
http://blog.samdevore.com/cakephp-pages/my-cake-wont-bake/
http://blog.samdevore.com/cakephp-pages/i-cant-bake/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to