<?php
namespace Test\Controller;

use KIF\Core\Controller;
use Test\Dao\ProductIndex;

class Test extends Controller {
	public function run() {
		
		$action = $this->action;
		$this->$action();
	}
	
	private function doDefault() {
		$this->tpl = 'test';
		
		$objProductIndex = new ProductIndex();
		$productIndex = $objProductIndex->get(100000);
		
		$this->setOutput('test', '我是测试');
		$this->setOutput('productIndex', $productIndex);
	}
	
	public function display() {
		$this->render();
	}
}