diff options
Diffstat (limited to 'demos/activeblog/protected/App_Pages')
-rw-r--r-- | demos/activeblog/protected/App_Pages/Home.php | 25 |
1 files changed, 23 insertions, 2 deletions
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 @@ <?php -class Home extends TPage +class Home extends BlogPage { - + public function onLoad($param) + { + parent::onLoad($param); + + // sqlite_open(dirname(__FILE__).'/../App_Data/blog.db'); + + // $finder = UserRecord::finder(); + // $user = $finder->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 |