summaryrefslogtreecommitdiff
path: root/demos/activeblog/protected/App_Pages/Home.php
blob: 0012e07331d8e8256c37634afbbfe8cb853609d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
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);
	}
}
?>