Showing posts with label blog tutorial. Show all posts
Showing posts with label blog tutorial. Show all posts

Monday, September 01, 2008

blog tutorial - php5 clean up
In the blog tutorial maybe the $name variable should be removed
it is a little bit cleaner this way
http://book.cakephp.org/view/334/create-a-post-model

from
class Post extends AppModel {
var $name = 'Post';
}
to
class Post extends AppModel {
}

Thursday, March 06, 2008

seems that i had to use cakephp 1.2 cookbook

here is the right tutorial for beta

and /add data validation is done without errors now

Wednesday, March 05, 2008

insert one blog post into database

INSERT INTO POSTS (ID, TITLE, BODY, CREATED, MODIFIED)
VALUES (
null,
'Foo',
'bar',
'now',
'now'
)

and do an select

SELECT a.ID, a.TITLE, a.BODY, a.CREATED, a.MODIFIED
FROM POSTS a


'now' is an predefined timestamp literal in firebird