From 0da331cb45cf202bf7fbd519c8d65f5956c85b2b Mon Sep 17 00:00:00 2001 From: jrags <> Date: Wed, 21 Feb 2007 16:31:50 +0000 Subject: Converted BlogDataModule Record classes to use active record, also changed the data module to load the database into the active record handler --- demos/activeblog/protected/App_Pages/Home.php | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'demos/activeblog/protected/App_Pages') diff --git a/demos/activeblog/protected/App_Pages/Home.php b/demos/activeblog/protected/App_Pages/Home.php index e4bda2c3..0012e073 100644 --- a/demos/activeblog/protected/App_Pages/Home.php +++ b/demos/activeblog/protected/App_Pages/Home.php @@ -1,6 +1,27 @@ findByPk(1); + // echo TVarDumper::dump($user,10,true); + // + // $finder = PostRecord::finder(); + // $post = $finder->findByPk(1); + // echo TVarDumper::dump($post,10,true); + // + // $finder = CategoryRecord::finder(); + // $categories = $finder->findAll(); + // echo TVarDumper::dump($categories,10,true); + // + // $finder = Post2CategoryRecord::finder(); + // $post2category = $finder->findByPk(1,1); + // echo TVarDumper::dump($post2category,10,true); + } } ?> \ No newline at end of file -- cgit v1.2.3